Skip Navigation

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

This support ticket is created 3 years, 2 months ago. 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.

This topic contains 1 reply, has 2 voices.

Last updated by Nigel 3 years, 2 months ago.

Author
Posts
#2189721

BV

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

For example:

hidden link

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

hidden link
hidden link
hidden link
hidden 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
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00: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.