Wenn Sie den Namen eines URL-Shops ändern möchten, platzieren Sie bitte die untenstehende Funktion in Ihr Kind-Thema:
add_filter( 'register_post_type_args', 'wpse247328_register_post_type_args', 10, 2 );Funktion wpse247328_register_post_type_args( $args, $post_type ) { if ( 'speichert' === $post_type ) { $args='interaktive Karte'; } $args zurückgeben;}
Hi,
I added the code above to the child theme and saved permalinks, but the slugs are still as the example below
https://northumberlandwi.org.uk/store/wylam/
Please ignore / remove / delete my previous comment, I was working between a test site and a live site so its no wonder updating the test site did not affect the live site!
Works like a dream, thanks for the swift response and sorry for the doh! moment
I added the function script into the child theme and it’s changed the slug but the single location pages are coming back with “page not found”.
Haben Sie ein Skript, das den Slug auch für die Kategorieseiten des Shops ändert?
You can read here on wie man einen benutzerdefinierten Taxonomie-Slug ändert.
Hi ! How to also change it in Breadcrumbs ?
Thank you so much !
That is up to your third party plugin or theme who is creating the breadcrumbs.