WP_Query paginate with one term per page?
We have a site with an online newsletter/magazine using a custom post type (newsletter).
What we’re trying to do is display the articles by ‘Issue’ (a custom taxonomy called ‘issue’), so that all of the current issue (let’s say its called ‘OCT2019’) show up as posts on the main page, then we want previous/next buttons to scroll between the issues. So on the main page there should be a ‘previous’ button that would then go to the previous issue (SEPT2019).
Is there a way to set up the wp_query to paginate based on taxonomy term.
What I can figure out is we need the query to sort posts in order of when the taxonomy term was created (not sure if that’s possible), so when the editor adds a new tax term (like ‘NOV2019’), it will show up first.
Then the query needs to paginate based on each tax term in order of creation date….
Lots of problems here I think, but I have to ask anyway. 🙂
Has anyone had to do this before? Anything close to similar?