WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to add a tag base with the country name to filter content based on that variable.

Something like:

http://base_url/country/page_name or http://base_url/country/post_type/post_name

The content would be filtered by a taxonomy using the country variable.

share|improve this question
Do you mean country is a taxonomy term? So it could be http://base_url/belgium/[page_name] and http://base_url/france/[page_name]? – Jan Fabry Jul 9 '11 at 13:45
That's exactly what i need to figure out – donbungle Jul 20 '11 at 18:23

I don't say this often but in this case: It is impossible without:

  1. hard coding the tags and adding dedicated rewrite rules for those or
  2. getting the current tag list on each request and updating the rewrite rules (very slow).

In short: No, forget it.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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