Custom Fields
Re-Envisioned
Support General How to remove the slug from the permalink of a CPT

  • Creator
    Topic
  • #31945
    Resolved Knüt
    Participant

    Hello!

    I've set up a Custom Post Type.

    By default, the permalink structure is my-site.com/cpt-slug/post-title.

    I would like to remove the CPT slug from the URL, so it would be just my-site.com/post-title.

    How can I achieve that?

    I've been playing with the Custom Rewrite Slug. It's empty by default, so I tried adding a slash /, but it broke the site. I also tried adding /%postname%/, but that wasn't successful either. Any ideas?

    Thank you very much!

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.