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

1 Answer 1

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

 
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.