- This topic has 5 replies, 2 voices, and was last updated 6 years, 11 months ago by .
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
- You must be logged in to reply to this topic.
Support › Forums › Sunshine Pro Theme › how can I show only one category with the full with blog template?
I have this test site: http://sunshine.lindebjerg.de/galerien using the page template “Full With Blog”
I what to show only posts from the category Galerie: http://sunshine.lindebjerg.de/category/galerie
how can I show only one category with the full with blog template?
Best Regards,
Jesper
If you add the category at Archive Content section of Genesis-> Theme Settings page, then it is working?
hi Paul, sure it works;-)
but here is what I need:
I need my normal “News” Blog on a page showing the category News like this: http://sunshine.lindebjerg.de/aktuelles
Then I need a Page Full With, “Gallery Page” showing the category Galerien like this: http://sunshine.lindebjerg.de/galerien
Best Regards,
Jesper
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;
Is it working let me know?
thanks you Paul, it rocks;-)
Please marke as Solved!
Best Regards,
Jesper