WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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'm currently using the plugin 'Types Custom Post Type' to create custom post types (I know it's pretty easily done through functions.php but I was feeling a bit lazy!).

Basically, I'm looking to have the following format for pages:

/wellbean-cottage/ - the main page for a house

/wellbean-cottage/things-to-do/ - a child page with information about the house

I thought the best option would be to create a different post type for these sub-pages, but unfortunately it doesn't seem to add the house slug beforehand. Does anyone have any idea how it can be set up to work like this?

Thank you in advance!

share|improve this question
Can you link the plugin? I couldnt find what you wrote in the plugin repository – Androliyah Jul 21 '12 at 19:56

Not sure if I understood you right, but there's an option when registering the custom post type:

register_post_type( 'your_cpt_name', array(
    'rewrite' => array( 'with_front' => true )
) );
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.