Query based on page name or specifying tag query in shortcode?
-
What I’m making is an art gallery type site. Every artist gets their own page and there are around 40 of them.
Instead of making 40 individual Post Grids, I was hoping for a simpler solution. Preferably a way to reuse one Post Grid and have it dynamically query for each page.
One thought would be the ability to base the post query on the name of the Page. So if the page is named “Mic Merth” and a post is tagged “Mic Merth” it would appear on that page.
Or to be able to specify the query in the shortcode, so [post_grid id=”1″ tag=”Mic Merth”] to accomplish the same effect.
That way I’d only have to make one Post Grid and at most change one line in the shortcode to make it work for every page.
Is this possible with the Pro version already? If not, could you make this a thing?
Thanks for your time!
The topic ‘Query based on page name or specifying tag query in shortcode?’ is closed to new replies.