Title: Custom post type permalink
Last modified: March 15, 2019

---

# Custom post type permalink

 *  Resolved [Sam](https://wordpress.org/support/users/forbiddenchunk/)
 * (@forbiddenchunk)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/custom-post-type-permalink-3/)
 * I have created a custom post type called “Blog” to be seperate from standard 
   posts.
 * I’ve set the posts permalink to “domain.com/news/%postname%/”
 * In the post type I’ve set the rewrite/slug to; “blogs”
 * However when I view a blog, the URL is;
 * domain.com/news/blogs/blog-article
 * How can I remove “news” from the URL, I’ve tried;
 * `with_front => true (and false)` to no success
 * Any ideas?
 * I get the feeling, I’ve missed something obvious!

Viewing 1 replies (of 1 total)

 *  Thread Starter [Sam](https://wordpress.org/support/users/forbiddenchunk/)
 * (@forbiddenchunk)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/custom-post-type-permalink-3/#post-11316720)
 * SOLVED!
 * For future reference, the `with_front` needs to go inside the array of the rewrite.
 * For example;
 * `'rewrite' => array('slug' => 'blogs', 'with_front' => false),`

Viewing 1 replies (of 1 total)

The topic ‘Custom post type permalink’ is closed to new replies.

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 1 reply
 * 1 participant
 * Last reply from: [Sam](https://wordpress.org/support/users/forbiddenchunk/)
 * Last activity: [7 years, 2 months ago](https://wordpress.org/support/topic/custom-post-type-permalink-3/#post-11316720)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
