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

My site currently has regular posts (in a section called "Trend Watch"), as well as a Custom Taxonomy (called "Region").

My permalink settings have this Custom Structure:


which gives me these urls:

  • /trend-watch/regions/ (lists all terms in the Regions taxonomy)
  • /trend-watch/regions/europe/ (lists all posts with the term "europe" in the Regions taxonmy).
  • /trend-watch/2011/03/an-interesting-article/ (a single post).

But now i'm adding a new Custom Post Type, called Reports. When registering this CPT, I set rewrite => array('slug' => 'reports'). But the urls are including "trend-watch/" first:


How can I remove "trend-watch/" from the Reports CPT urls, but keep it for regular Posts (and the associated Custom Taxonomies).

share|improve this question
FYI - You should take a moment to mark @prettyboymp's answer as correct. – Joel Glovier Nov 13 '12 at 17:00
up vote 2 down vote accepted

You need to set the 'with_front' parameter in the rewrite argument for the custom post type to false.

'rewrite' => array('slug' => 'reports', 'with_front' => false)
share|improve this answer
Perfect. Thanks!! – Joel Glovier Nov 13 '12 at 17:01

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.