Tagged: side navigation
-
AuthorPosts
-
September 4, 2013 at 6:57 pm #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
September 4, 2013 at 7:17 pm #139387Hi,
Can you post the link to your website please?
Regards,
Josue
September 4, 2013 at 7:30 pm #139388Hi 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
September 5, 2013 at 12:26 pm #139389This appears to be a bug in the software since I have seen others posting the same issues/frustration.
September 6, 2013 at 12:59 pm #139390No, 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
September 6, 2013 at 1:42 pm #139391Could similar code be added to do this for pages that are in the same category?
Thanks for your quick response.
September 7, 2013 at 6:08 pm #139392Hi!
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
-
AuthorPosts
- The topic ‘Posts – Navigation’ is closed to new replies.