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

1 Answer 1

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