I tried to add
array("slug" => "webspots/%post_id%")
for the rewrite attribute with creating a new post type. But %post_id% has not been replaced. I would like to add the post_id in the url, so when i change the title of the content, the link will not be broken in the future.
I’ve searched many placed on the web, but couldn’t find any explaination about these except 3 lines…
One other way around this would be to use the add_permastruct function of the $wp_rewrite object and manually define what kind of permalink structure you would like to use for your custom type posts. Don’t forget to filter post_type_link if you do.
on this page
If someone can help me with this (with steps) how to create a link structure like this: