Display posts in [category] AND [tag]
-
I’m using WP as a content management system for a directory of merchants, where I have used tags as cities and categories as… well, categories.
I have set the site up so that I have dropdowns to show all posts within a city (tag) and category.
My goal is the following:
- To display all posts within X category AND Y tag
- Preferably, this would be in a friendly permalink kind of way, for instance https://[site]/tag/%5Btag%5D/city%5Bcity%5D or even better, https://[site]/%5Btag%5D/%5Bcategory%5D, so the example would be https://www.yoursite.com/newyork/restaurants would display all posts with the tag=new york and category=restaurant
- I’d also like to include something, preferably in the sidebar when displaying all the posts for a tag, that shows me a list of all the categories that have posts and also that tag. For instance, when viewing New York, the sidebar would display Restaurants, Bars, Office supplies, etc in the sidebar and/or right on the page, so that the user can drill down further.
- Also, if possible, I’d love to be able to do the opposite, even though this is not as important. But simply display all the tags per category. So after selecting restaurants, the user can see all cities that have restaurants in them.
I know that WP is a blogging software, and that this wasn’t its intention. However, I’ve successfully migrated all the content from an old site, and the admin UI in WP is unbeatable. If I could get this to work, together with a good way to do sorting (some featured posts should be on top in the category/tag views which I think I can find a plugin to do), I’m there…
Any help and/or suggestions would be appreciated. I’m even willing to pay someone to develop a plug-in that accomplishes the above.
- The topic ‘Display posts in [category] AND [tag]’ is closed to new replies.