query next and previous post link
-
This is one of those question where i’m pretty sure something is possible, but I don’t know what to research to learn how to do it. I was hoping someone could give me some key words to Google to point me in the right direction.
Basically, on my front page I am using WP_Query() to pull a custom post type and then sort them by both date and time (I use Custom Metaboxes and Fields by WebDevStudios on the backend).
When a person clicks on a single post I would like the user to be able to click through using the previous and next links for only that specific date metabox data and then sorted by time as well. I was able to use plugin called “Ambrosite Next/Previous Post Link Plus” to pass arguments to a previous and next link to only query a specific custom post type as well as those that have a matching metabox field. This almost did it. I am able to click through my CPT that have a matching date. However, this plugin will not allow me to pass another argument so that I can sort by time as well. So, back to the drawing board.
Can someone point me in the direction of how I can do this? The arguments that you can pass to next_post_link() and previous_post_link() seem limited.
- The topic ‘query next and previous post link’ is closed to new replies.