• Paul

    (@rhododendron)


    There is a typical requirement here.

    I can explain it in two ways.

    1. I want to show a specific Category posts on a specific page. For example: I have a page for Cinema. It has a short description on the topic. I have Cinema related posts which I want to show here in this page in a grid format which hueman supports.

    2. Or in other way the category itself can have its page description. which may appear just before the related posts.

    Thats quite a long description I suppose. 🙂

    But I have no idea how would I do it here.

    @alexander Need your help on this.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey!

    1) This feature has been requested a few times but I haven’t been able to build it. Here is the to-do issue for it on GitHub.

    For now, what you can do is go to Theme Options > Sidebars and create an area for each category. Let’s call one sidebar-food for example.

    Then, you’d need to go to sidebar.php (or sidebar-2.php if it’s secondary) and locate this:

    <?php dynamic_sidebar($sidebar); ?>

    Replace with:

    <?php if ( is_category('food') ): ?>
    <?php dynamic_sidebar('sidebar-food'); ?>
    
    <?php elseif ( is_category('sports') ): ?>
    <?php dynamic_sidebar('sidebar-sports'); ?>
    
    <?php else : ?>
    <?php dynamic_sidebar($sidebar); ?>
    <?php endif ;?>

    Thread Starter Paul

    (@rhododendron)

    Thanks for your valuable suggestion.
    But I was wondering on the 2nd point I cited.

    the category itself can have its page description. which may appear just before the related posts.

    Can I be able to implement it?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Showing category posts in a page’ is closed to new replies.