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 small doubt and wonder if I could help.

By adding a post, I have the permalink "http://www.mysite.com/post-name". I would like to know how to post a parent, for example, "http://www.mysql.com/post-name/video". I wanted to add sub posts in the posts, but do not know how.

To add pages, simply add the new page as a parent of another page, but does not have this option for posts.

I was looking for something like WP Rewrite class or any other way to do this.


share|improve this question
Are you sure you can't achieve your goal with pages? Posts are not intended to have parents, children or siblings. Why'd they? – Wordpressor Sep 3 '11 at 0:48

You could create a custom post type and set hierarchical to true, but keep the post capability role. The link below is a good starting place.


Although I would strongly recommend using some sort of javascript html css workaround. Maybe a jquery ui tabbed interface located inside of your single.php theme like "http://www.mysite.com/post-name/#video"

share|improve this answer

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.