Custom permalink structure for CPT

Support MB Custom Post Type Custom permalink structure for CPTResolved

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #27323
    WolfgangWolfgang
    Participant

    Hi,
    i have the following problem:
    my permalink structure is like example.com/%postname%/. I have a CPT called jobs. I want to change my CPT permalink structure to example.com/jobs/%post_id%/, but only the structure of the CPT. Would that be possible with Meta Box? I found a few tutorials online, but maybe it would be a cool feature if you could include it, you already have "custom rewrite slug", would be cool if i could just add there my permalink strucutre for that certain post type.

    Is there any way to easily achieve that?! I'm not very familiar with writing code at all.

    Thanks in advance!
    Cheers

    #27330
    Long NguyenLong Nguyen
    Moderator

    Hi,

    Thank you for reaching out.

    The default permalink structure of a CPT as your expectation http://your-site.com/cpt-slug/post-title-slug

    The option Custom rewrite slug helps you to change the CPT slug to another one like this http://your-site.com/custom-slug/post-title-slug

    Remember to re-save the permalink settings after changing the post type settings.

    #27332
    WolfgangWolfgang
    Participant

    Hi,
    I'm not sure if I got you right!

    Regarding to your description I can only change (in my example) the CPT-Slug job to lets say job-offer?

    So if I have example.com/job/my-first-job it would change to example.com/job-offer/my-first-job right?
    What I am looking for is to change the permalink structure from %postname% to %post_id% but only for that specific CPT.
    So my link would look like example.com/job/3456
    I didn't manage to do that. The screenshot is showing what I'm trying to achieve in the CPT-Settings
    screenshot

    #27344
    Long NguyenLong Nguyen
    Moderator

    Hi,

    I'm afraid it is not possible with the plugin MB Custom Post Type. You can try to use a third-party plugin to create a custom permalink for a specific post type https://wordpress.org/plugins/custom-post-type-permalinks/

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