Custom Post Type Permalink Problem
-
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
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.
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 🙂
The topic ‘Custom Post Type Permalink Problem’ is closed to new replies.