• Hey team! I hope you’re having an awesome day ??

    Just wondered if there was a way to remove a custom post types slug from the url with this plugin or via PHP? That would be really good.

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • yes it will be amazing how to remove a

    “If you check this, the custom taxonomy’s permalinks will be https://DOMAIN/post_type/taxonomy/term”

    how to remove a post_type from url and keep “https://DOMAIN/taxonomy/term” tnx.

    I am also trying to do same. I tried 1000 times but always getting 404.

    “hierarchical” => false,
    “rewrite” => array( “slug” => “country”, “with_front” => true ),
    “query_var” => true,

    I convert into:

    “hierarchical” => false,
    “rewrite” => array( “slug” => “%category%”, “with_front” => true ),
    “query_var” => true,

    and I get 404.

    I want to remove post_type and also echo category name.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove CPT Slug’ is closed to new replies.