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
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;