I’m trying to figure out how to remove the ‘slug’ => ‘portfolio_item’ from the permalink. I can change it but i want to completely remove it from the URL.
I have tried with custom-post-type-permalinks plugin and then i have changed ‘rewrite’ => array( ‘slug’ => ‘portfolio_item’,’wi’), with ‘rewrite’ => false and saved permalinks changes. It worked but the page then gives 404 error page not found.
Any idea on how to solve this one?
Thanks for contacting us.
Try to change the code ‘rewrite’ => array( ‘slug’ => ‘portfolio_item’,’wi’), to \'rewrite\' => array(\'slug\'=>\'\',\'wi\'=>false), instead.
I hope this helps.