Cannot Remove post type slug.
if you change post type slug, try change rewrite arguments.
https://codex.ww.wp.xz.cn/Function_Reference/register_post_type#rewrite
Hi,
Thank you for quick reply.
Use of ‘with_front’ = false is to remove the post-type slug, right?
Does the plugin manually adds post-type to slug?
@toro_unit I am also interested to change the with_front value to false. I currently have the following code in my PostTypes.php file in the appropriate $arg values:
'rewrite' => array (
'with_front' => false
)
Any pointers or other things that can be done to set the default value of with_front = false?
I think it is very good issue!Also I have some problem with set with_front=>false attributes. And nothing happened with slag into url. It is still there! I looked answer for it. And just find that it is trouble with 5th WordPress. Also this question is actually! And I tried Simple CPT permalink plugin, where you can select field without permalink and it’s work! But there are couldn’t category add to url((( just postname and post_id. Can you help resolve this trouble?