WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

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 want to get url friendly for pass data to page from other page. I explain :

I have on i classic wordpress page, url like it : ( example.com/agent/name_agent ) it's url build dynamically. ( get_permalink($id_page_agent) . $name_agent )

In my loop-agent.php , i can manage $_GET['agent_name'] to make a filter.

I need to build redirection example.com/agent/name_agent > example.com/agent/?agent_name=name_agent

I don't know if you understand ?

share|improve this question
up vote 1 down vote accepted

Rather then trying implement something for you, I would recommend you to read these two nice articles about Rewrite API: The Rewrite API: The Basics and The Rewrite API: Post Types & Taxonomies. Spare no effort to read these articles and it will help you a lot in a future.

share|improve this answer
Thanks, add_rewrite_rule it solution :) – Mepps Jun 7 '12 at 14:39
you are welcome – Eugene Manuilov Jun 7 '12 at 14:40

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.