• 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

[Resolved] 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?

  • This topic has 5 replies, 2 voices, and was last updated 6 years, 11 months ago by lindebjerg.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • April 28, 2016 at 10:06 am #1025
    lindebjerg
    Participant

    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

    April 28, 2016 at 10:47 am #1026
    Chinmoy Paul
    Moderator

    If you add the category at Archive Content section of Genesis-> Theme Settings page, then it is working?

    April 28, 2016 at 11:00 am #1027
    lindebjerg
    Participant

    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

    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;

    April 28, 2016 at 11:20 am #1029
    Chinmoy Paul
    Moderator

    Is it working let me know?

    April 28, 2016 at 12:23 pm #1030
    lindebjerg
    Participant

    thanks you Paul, it rocks;-)

    Please marke as Solved!

    Best Regards,
    Jesper

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.
Log In

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