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

Not sure how to ask this, because I'm not exactly sure what I'm asking.

I'm looking to use custom URLs (using rewrite rules maybe?) to create 'tabs' for a Custom Post Type. In the past I've used things like a GET session variable to determine what tab the user is on, or JavaScript. I would really prefer to keep it on it's own logical page with a URL to reflect that.

A very basic look of the tabs would be:


For example if we're on the CPT of Charity's sub page of Updates: http://siteroot/charity/updates

share|improve this question
up vote 1 down vote accepted

Create an end point for the permalinks. See example.

Then you can even be more granular and use updates/2012, updates/2013 and so on.

Recommended reading:

share|improve this answer
Thank you - that's exactly what I was trying to communicate! I am reading through the examples and codex documentation now - this is incredibly helpful! – Aaron Holbrook Jul 6 '12 at 19:20

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.