Custom Content Type Manager
Removing %post-type% from the URL (7 posts)

  1. pavelsof
    Posted 3 years ago #


    First of all, thank you for the great plugin you have made!

    I am making a multi-language website and use CCTM to create a separate content type holding for, let's say, the apples. Of course, I would like the website to have pretty URLs, so now these look something like this:

    http://fruits.org/apple/green-apple/ (English)
    http://fruits.org/apple/manzana-verde/ (Español)

    However, the website is multilingual and 'apple' means 'apple' in English only. How can I remove the %post-type% from the URL in order to have URLs like this:

    http://fruits.org/green-apple/ (English)
    http://fruits.org/manzana-verde/ (Español)

    I have been playing around with the CCTM options for quite a while and found no way to remove the post-type from the URL.

    Any help would be appreciated!



  2. fireproofsocks
    Plugin Author

    Posted 3 years ago #

    Thanks, I hope you find this plugin useful.

    Good question. I haven't done serious work in deciphering WP's support of custom URLs, but even with my limited understanding of them, I can tell that what you're asking for there may be quite difficult. WP isn't terribly customizable when it comes to URLs, but more importantly, you can't really do what you're asking for without serious custom handling of page requests. Keep in mind that URL means UNIQUE resource locator. So it's one URL per resource. That means that if you consider the English page as the same resource as the Spanish page, then they will have the same URL.

    Hope that helps.

  3. pavelsof
    Posted 3 years ago #


    Thank you for the quick response!

    The multi-language plugin I am using creates different posts for each translation. Anyway, I asked my question in a stupid way.

    What I need is to remove the /%post-type%/ from the URL. For example, pages and posts have URLs something like this:


    Then how can I have apples have URLs like this:

    instead of


  4. fireproofsocks
    Plugin Author

    Posted 3 years ago #

    I can only point you to the WP permalink settings and the settings for permalinks for each post-type.

  5. audriusr
    Posted 2 years ago #

    Hey Pavel, have you figured it out yet?

    I have found great plugin that allows to edit post urls (title: Custom Permalinks)- it allows delete the base url by hand, but I am still looking for other solution since I need this to be automated.

    fireproofsocks - GREAT plugin by the way!

  6. fireproofsocks
    Plugin Author

    Posted 2 years ago #

    Custom Permalinks -- I'll check that out. Hard to beat MODx's flexibility in that arena.

  7. nexusmedia
    Posted 2 years ago #

    I found this thread when I was looking to do the exact same thing.

    After some digging, I finally figured it out.

    1. Navigate to the URL tab under the custom content type you'd like to customize.
    2. Uncheck "Rewrite with Permalink Front"
    3. Permalink Action: Custom
    4. Rewrite Slug: "/"

    That's it! The custom content type posts should default to {root}/%post-name%/

    I hope this helps!


    While this resulted in the URL structure desired for the custom content types, it effectively broke all of the regular page / post URL's for the rest of the site. So please use this fix with caution. I'm going to continue searching for a universal fix.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Custom Content Type Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic