• Home
  • Blog
  • Showcase
  • Setup Docs
    • Sunshine Help
    • Flex Help
  • Support
    • Support Area
    • Contact us
    • Feedback
  • Connect
    • Newsletter
    • Twitter
    • Facebook
  • My Account
  • Flex
  • Sunshine
Support : Simple Pro Themes

Support : Simple Pro Themes

Reply To: how can I show only one category with the full with blog template?

If you have purchased a product, please enter the email address that you used to register at time of purchase.
Log In
Lost Password

Create an Account
  • Your username must be unique, and cannot be changed later.
  • We use your email address to email you a secure password and verify your account.

Support › Forums › Sunshine Pro Theme › how can I show only one category with the full with blog template? › Reply To: how can I show only one category with the full with blog template?

April 28, 2016 at 11:08 am #1028
Chinmoy Paul
Moderator

Then try this code

add_filter( 'genesis_pre_get_option_blog_cat', 'sunshine_select_category_id' );
function sunshine_select_category_id( $cat ) {
 if( is_page( ENTER BLOG PAGE ID ) )
   $cat = "ENTER NEWS CAT ID";
 
 if( is_page( ENTER GALLERY PAGE ID ) )
   $cat = "ENTER GALLERY CAT ID";

 return $cat;
}

Hope that it will help;

Copyright © 2022 · Simple PRO Themes for Genesis Framework · About · FAQs · Contact · Affiliates