permalinks - Remove multisite "blog" slug from specific custom post type

admin2025-06-04  0

I have wordpress multisite, by default multisite has the word "blog" added to all post types excluding "pages" How would i only remove it from a specific custom post type.

If I go to setting and remove the "blog slug" from setting it gets remove from the actual blog section of the website which i don't want because i need to keep the URL the same.

I have wordpress multisite, by default multisite has the word "blog" added to all post types excluding "pages" How would i only remove it from a specific custom post type.

If I go to setting and remove the "blog slug" from setting it gets remove from the actual blog section of the website which i don't want because i need to keep the URL the same.

Share Improve this question edited Feb 5, 2014 at 11:16 John Doe asked Feb 5, 2014 at 11:09 John DoeJohn Doe 1571 gold badge1 silver badge10 bronze badges 0
Add a comment  | 

1 Answer 1

Reset to default 2

Set with_front to false to not prepended the front base to the permalink structure. Customize the permalink structure via the slug:

'rewrite' => array( 
    'with_front' => false, 
    'slug' => 'portfolio'
)
转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1748998213a315490.html

最新回复(0)