Navigation überspringen

[Gelöst] When selecting rewrite and adding a custom url format using %category% breaks

This support ticket is created vor 6 Jahren, 5 Monaten. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

Dieses Thema enthält 1 Antwort, hat 2 Stimmen.

Zuletzt aktualisiert von Minesh vor 6 Jahren, 5 Monaten.

Assistiert von: Minesh.

Author
Artikel
#1116132

I am trying to:
Make permalinks for a custom post type that follow the format mydomain.com/%custom-taxonomy%/%post-name%

Link to a page where the issue can be seen:
versteckter Link
THe issue is not with that link itself, I understand that the %cat-lugares% doesn't get the right taxonomy slug, I could do that with a custom funtion on the function.php file.

The issue is with the rest of the website pages, Everytime I add the text %cat-lugares%,on the custom post type custom url format, all pages return a 404 error.

I expected to see:
I expect non of the pages get affected by this. At the end I am changin the custom post type format url only, not changing anything else. So I would understand the custom post type links not to work, but I don't understand why all the site breaks.

Instead, I got:
Instead all pages return a 404 error, even when I'm only edditing a custom post type url format.

So what would be helpful in my situation?

1. Point me in the right direction on how to imlement permmalinks that follow the structure: mydomain.com/%custom-taxonomy-slug%/%custom-post-type-slug%

2. Fix the error that the whole site breaks when adding %% to the format url on a custom post type settings.

#1117076

Minesh
Supporter

Sprachen: Englisch (English )

Zeitzone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - custom URL rewrite settings accept the string and prepend posts with that string.

Any customizations with URL using place-holders, you need to add rewrite rules and that needs custom programming.

Following are a few links, which may help you achieve this, please have a look:

Plugin: https://wordpress.org/plugins/rewrite/
WP Plugins Repository Search: https://wordpress.org/plugins/search.php?q=url+rewrite

Few Articles that may help you:
0. versteckter Link
1. versteckter Link
2. http://code.tutsplus.com/articles/using-wordpress-for-web-application-development-available-features-part-6-url-rewriting-or-routes--wp-34326
3. versteckter Link

For any of your custom URL rewrite requirement, I would suggest contacting our certified partners.
=> https://toolset.com/consultant/