WordPress.org

Ready to get started?Download WordPress

Forums

Types - Custom Fields and Custom Post Types Management
[resolved] Custom Post Type Permalink Problem (4 posts)

  1. faeronsayn
    Member
    Posted 1 year ago #

    So I've been trying to edit the permalinks for one of my custom post types that I've created through types. I see the following option when I edit the custom post type

    http://i.imgur.com/EYzAA.png

    My normal wordpress URL logic, or at least what I've defined in wordpress permalinks is to use /%post_id%/%postname%/

    So I thought that would be used for my custom post type, but instead the following is being used

    /slug-of-the-customposttype/post-title

    so my custompost type name is mirror it would look something like the following

    /mirror/post-title

    But I want something of this sort

    /mirror/post-id/post-title/

    So I switched the option from Use WordPress URL logic to use custom url logic.

    http://i.imgur.com/RQc9z.png

    But I don't know exactly what type of syntax to put in that field.

    I've tried putting in what I put in for the custom url format for wordpress in the settings > permalinks

    /slug/%post_id%/%postname%/

    but that doesn't work.

    Could someone tell me the syntax that I'm suppose to use in that field?

    If possible give me the value I need to put in to get my custom post type permalinks to look like the following

    /slug/post-id/post-title/

    Thanks again for reading :)

    http://wordpress.org/extend/plugins/types/

  2. wmoll
    Member
    Posted 1 year ago #

    This is not work possible right now.
    We already have this is task as part of complex update in one of next version.

    Right now you can only change slug to custom.

  3. faeronsayn
    Member
    Posted 1 year ago #

    Alright, any guess on when this next version will be coming out?

    I was able to find another plugin that just edits the custom post type permalink structure here

    http://wordpress.org/extend/plugins/custom-post-type-permalinks/

    But I can't get it to work, and I believe that's because of the fact that types is enabled and is not letting the other plugin get access to the custom post types it's made.

  4. AmirHelzer
    Member
    Plugin Author

    Posted 1 year ago #

    We're not sure. This sort of change requires deep testing. We have it on our list of new features, but haven't started on it.

    I'm writing in our blog when new versions are available and describing all new features. You can subscribe to the blog and get these updates directly:
    http://wp-types.com/category/blog/

    That blog is mostly intended for version updates, so if you subscribe to it, you will receive only relevant messages.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic