Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.