• Resolved ctrlaltdelete

    (@ctrlaltdelete)


    Hi, for regular posts you can change the permalink structure going to settings/permalinks.
    You can set for example a custom structure to use ID’s instead of pretty permalinks, example:

    http://domain.com/%post_id%/

    Is it possible to achieve something similar with CPT-UI? Like:
    http://domain.com/cpt/%post_id%/

    Thanks!

    PS: I know there are plugins that do this but i figured maybe CPT-UI does it already, don’t wanna install an extra plugin if i can.

    • This topic was modified 9 years, 3 months ago by ctrlaltdelete.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    No, we don’t touch rewrite rules outside of what can be done via the parameters available for register_post_type() and register_taxonomy(), which are ultimately just setting the slugs to be used for each content type.

    Setting up custom URLs around them are a separate topic involving the Rewrite API.

    Thread Starter ctrlaltdelete

    (@ctrlaltdelete)

    Gotcha i’ll look elsewhere. Thanks.

    Thread Starter ctrlaltdelete

    (@ctrlaltdelete)

    Wow me again, sorry i’ve been reading a lot and all the solutions to achieve this are hacky as hell plus always seem to break something else like page of archives giving 404.

    Are you interested on creating a plugin that would basically replicate the permalinks settings but for custom post types? I’m up for donation/buying it.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Chances are I’d be in the same general boat as you, as the rewrite API isn’t one of my stronger points. I’d be doing my own fair amount of googling of tutorials and such, hoping for the best results.

    Have you checked for existing plugins that maybe help handle this type of topic? Just in case you hadn’t.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Change default permalink structure for CPT?’ is closed to new replies.