Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #28995

    I like the side of screen navigation, but when you select “Grid” layout for posts and it prompts for the category it’s all good until the navigation is used. It then allows a user to page through all the posts instead of just the posts in the category that was selected. Could this be fixed to just navigate through the selected category only?

    Thanks

    #139387

    Hi,

    Can you post the link to your website please?

    Regards,

    Josue

    #139388

    Hi Josue,

    I’m running it on localhost so it is not live yet. Shouldn’t the side nav only go forward or backward through the Blog category selected in the Grid and not through all of the posts?

    Thanks

    #139389

    This appears to be a bug in the software since I have seen others posting the same issues/frustration.

    #139390

    No, by default the arrow navigation buttons (left/right side of the screen) will always link to the next or previous post without checking the category. The posts are selected by date. If you want to limit the navigation to the current category you can use following code;

    add_filter('avia_post_nav_categories', 'use_same_category_filter');
    function use_same_category_filter($same_category)
    {
    $same_category = true;
    return $same_category;
    }

    – insert it at the bottom of functions.php. This code will only work for standard posts and it doesn’t support portfolio entries/post at the moment. This is indeed a bug in the software but not in our “software” or theme code but it’s a wordpress core bug/limitation: https://kriesi.at/support/topic/is-it-possible-to-create-two-completely-seperate-portfolios#post-108132

    #139391

    Could similar code be added to do this for pages that are in the same category?

    Thanks for your quick response.

    #139392

    Hi!

    Could similar code be added to do this for pages that are in the same category?

    No, because pages do not support categories. That’s one of the main differences between posts & pages….

    Best regards,

    Peter

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Posts – Navigation’ is closed to new replies.