Changing wordpress custom-post-type permalink

How can I personalize a custom post URL in Wordpress? I've been using Custom Post Type Plugins but I want to change this URL:

website.com/slug/%models_cat%-%models_tag%/%postname%

To:

website.com/slug/%models_cat%-%models_tag%-%postname%

The second link gives me a 404 error if I change / to - on %postname%.

I tried to search, but couldn't find anything relevant.

Upvotes: 0

Views: 1666

Answers (1)

John Sims
John Sims

Reputation: 56

Have you tried changing it in Settings-Permalinks?

You should be able to select Custom Structure and add any of these variables.

https://codex.wordpress.org/Using_Permalinks

EDIT:

This issue has been addressed in Wordpress Stack Exchange.

You have to edit the function.php file.

https://wordpress.stackexchange.com/questions/212379/dashes-instead-of-slashes-as-permalink-structure-separator

Upvotes: 1

Related Questions