• Resolved Sam

    (@forbiddenchunk)


    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

    (@forbiddenchunk)

    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.