Support » Plugin: Custom Content Type Manager » [Plugin: Custom Content Type Manager] Removing %post-type% from the URL

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor fireproofsocks

    (@fireproofsocks)

    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.

    Thread Starter pavelsof

    (@pavelsof)

    Hello,

    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:

    http://fruits.org/sample-page/
    http://fruits.org/sample-post/

    Then how can I have apples have URLs like this:

    http://fruits.org/sample-apple/
    instead of
    http://fruits.org/apple/sample-apple/

    Regards,
    Pavel

    Plugin Contributor fireproofsocks

    (@fireproofsocks)

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

    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!

    Plugin Contributor fireproofsocks

    (@fireproofsocks)

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

    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!

    [IMPORTANT EDIT!]

    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.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: Custom Content Type Manager] Removing %post-type% from the URL’ is closed to new replies.