0

How do I create pretty permalinks for a query page that includes results from both categories and tags.

For instance, if the category is Country (America) and the tag name is city (New York), can I have a permalink like wordpressblog.com/america/new-york for a page that shows all posts belonging to Amercia category and NY tag?

Thanks much!

1

You could do it manually in your .htaccess although I'm not sure how. In the past I have been able to use partially pretty urls by doing

http://www.mydomain.com/country/america/?city=new_york

I would imagine it would easy enough to use mod_rewrite to prettify that even further.

UPDATE: Check this out it looks like it will do exactly what you need!

http://thereforei.am/2011/10/28/advanced-taxonomy-queries-with-pretty-urls/

  • Thank you. This looks like the best approach at this time. – Amit Agarwal Sep 25 '12 at 10:59

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.