I must to create yearly editions and separate posts of 2018 edition from posts of 2019.

I think, editions can be a taxonomy and years (2018, 2019, etc.) can be taxonomy terms.

Then, I can pre_get_posts to populate main query with the right posts (2018 posts or 2019 posts).

Then, I need to put a drop down with the years in order to allow user to choose one edition.

Is this a right approach?

If yes, how can I tell to server what edition the user has chosen?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.