I have custom post type 'campaign' and in browser it is showing like this


but I want to show it after home url like this ..


1 Answer 1


When creating your custom post type set with_front to false in the rewrite.

'rewrite' => array(
    'slug'  => 'campaigns',
    'with_front'  => false,

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.