extend get_previous_post > get_previous_posts & next as well
It would be awesome if you extend the function "get_previous_post"&"get_next_post" so that we can get more then one in both directions with possibility to chose what to show.
Thanks to such function we can create more sophisticated navigation through the web. Instead using text based link to who knows what there will be a chance to see a image form "x" prev-next posts, or names, or meta, with excerpt, whatever.
The way how it is now, the text based (link) system is not satisfactory anymore.
thanks for considering..
Yes, on top of that, when a post is in multiple categories, this stars jumping from oune cat to the next, there should be a way to make so it stays in the categorie from which the next post navigation started.
Agreed, the previous/next post function is pretty worthless when you are viewing a category or tag or anything other than the entire set of posts.
I would like to see this function extended to allow for easy navigation for taxonomies as well....
@pablogt You can already restrict get_previous_post to getting the previous post in the same category - just pass a parameter 'true':
<?php get_previous_post( true ); ?>
@ Ben Huson
Thanks a lot for your idea, incredible how solution can be sometimes easy : )
Thank you very much for that idea, your solution helped me very well
RSS feed for this topic
You must log in to post.