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 page title "more" with subpage "cities-guide". Said "cities guide" page has a loop that pulls in posts from custom post type "thailife_city_guide".

My permalink structure is /%category%/%postname%/.

At present clicking a link to a custom post from
www.mydomain.com/more/cities-guide gives
www.mydomain.com/thailife_city_guide/bangkok for example.

I want it to be displayed as www.mydomain.com/more/cities-guide/bangkok but cannot get anything to work

I tried fixing the rewrite in the CPT register to 'rewrite' => array( 'slug' => 'more/cities-guide' ), but to no avail, throws a 404.

Can someone please advise as I just dont really understand the way in which WordPress rewrite works so I am stumped?

share|improve this question

You may have to flush the permalink structure. You can either visit the settings->permalinks page or use flush_rewrite_rules() method.

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.