Navigation überspringen

[Closed] Hierarchical URLs vs. non-hierarchical ones – they are both alive

This support ticket is created vor 4 years, 8 months. 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.

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

Zuletzt aktualisiert von Nigel vor 4 years, 8 months.

Author
Artikel
#2189721

BV

For my place locations taxonomy terms, I use hierarchical URLS.

For example:

versteckter Link

During scans by Ahrefs.com I found notifications on several non-canonical links. I checked up - it was urls such as:

versteckter Link
versteckter Link
versteckter Link
versteckter Link

They are on air all of them! You can miss any parent term in chain, but keep the last one and keep nesting order - any of such urls will return term page!

I again, understand it's the pitfall of WP core, but because you provide interface to custom posts and taxonomies - maybe you can provide some recipe?

#2189979

Nigel
Unterstützer

Sprachen: Englisch (English ) Spanisch (Español )

Zeitzone: Europe/London (GMT+01:00)

Sorry, as you seem to realise yourself, that's just how WordPress works.

It takes the URL and does it's best to work out what to display for that URL, and when looking at a taxonomy archive it really only considers the final part of the URL and ignores the hierarchy.

Toolset provides an interface to use custom taxonomies inasmuch as it provides a helpful UI to set up the arguments used by the core register_taxonomy function (https://developer.wordpress.org/reference/functions/register_taxonomy/), but it doesn't change how those taxonomies work.

The topic ‘[Closed] Hierarchical URLs vs. non-hierarchical ones – they are both alive’ is closed to new replies.