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 have a specific issue here. I have website using custom post types, and I need to create a specific functionality for these custom post types. From each custom post type the user should be able to "buy" the product the custom post represents. So my idea is to create programatically additional "page" which would be like %url%/my-custom-post/order/ . And I am looking for the way how to do it.. Adding some rewrite rule..? Searching did not give me a result (maybe I was searching wrong, I am not so sure what exactly to search for..) Thank you for pointing me .. :)

share|improve this question
up vote 0 down vote accepted

You need to use custom endpoints for it. Read The Rewrite API: Basics article for more information, especially section Add Custom Endpoint.

share|improve this answer
Perfect, this helped me. Thank you! – Karel Attl Jun 4 '12 at 8:55

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.