Support » Plugin: Custom Post Type Permalinks » Remove the default posttype slug from URL

  • Hi,

    Plugin is great. But is there any option to disable the by default sitename/post-type-name

    I tried giving false value to with_front and has_archive, but by default /post-type-name/ comes in slug.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Toro_Unit (Hiroshi Urabe)

    (@toro_unit)

    Cannot Remove post type slug.

    if you change post type slug, try change rewrite arguments.

    https://codex.wordpress.org/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?

    danieltotherescue

    (@danieltotherescue)

    @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?

    Vladimir

    (@vaoooglu)

    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?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Remove the default posttype slug from URL’ is closed to new replies.