Custom Fields
Re-Envisioned
Support MB Custom Post Type Custom permalink structure for CPT

  • Creator
    Topic
  • #27323
    Resolved Wolfgang
    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • #27330
    Long 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
    Wolfgang
    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 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 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.