Skip Navigation

[Résolu] Unwanted taxonomy pages

This support ticket is created Il y a 9 mois et 4 semaines. 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.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Karachi (GMT+05:00)

Ce sujet contient 1 réponse, a 2 voix.

Dernière mise à jour par Waqar Il y a 9 mois et 4 semaines.

Assisté par: Waqar.

Auteur
Publications
#2682518

Hi,
We created 2 new taxonomies for a website and they are applied to pages and posts. Afterwards, during a health scan, I noticed that there were a bunch of new orphan pages that were created by the taxonomies.
Here is an example: lien caché
So "plumbing-service" is the taxonomy slug and should not have any pages actually created.

I found information that I needed to turn off the rewrite checkbox. This resolved the orphan pages.

The next scan there were a bunch of 404s.
The 404s were previously the orphan pages (same link above) that were linked to by pages structured like this: lien caché

I found an article that mentioned turning off the "query_var" setting, which I then did. It worked and those pages disappeared.

A recent scan shows those 404s again, but this time they're found on URLs structured like this:
lien caché

Looking at the source code of that page and searching for the 404: lien caché I can see that it exists in Yoast's code:
<link rel="canonical" href="lien caché">
<meta property="og:url" content="lien caché">
And Yoast's schema.

How do I eliminate those pages, and if I can't eliminate them, how do I remove the links to the taxonomy pages that no longer exist? Maybe it's tied into Yoast settings?

Thanks for your help.

#2682538

Hi,

Thank you for contacting us and I'd be happy to assist.

The pages you're referring to are called taxonomy archive pages, a built-in feature from WordPress. As far as SEO is concerned you can use them to your advantage, as explained in these guides from Yoast:
lien caché
lien caché

In case, you still decide to make these pages inaccessible, you can include some custom code, as suggested in this support forum thread:
https://toolset.com/forums/topic/wondering-how-to-turn-off-the-archive-pages-for-custom-taxonomies/

I hope this helps and please let me know if you need further assistance.

regards,
Waqar

#2683566

Thanks for your reply. We don't want to use the taxonomy pages as they're irrelevant to show as a standalone.
I found a fix though without disabling them with code. I enabled the Yoast SEO settings on those taxonomies, then went into each one and pasted in the correct URL as the canonical URL for each eg for the "Drain Inspection" category I pasted in the URL ".../service/drain-inspection/", which is the page we're using publically for that service (not the taxonomy page), saved it, then disabled the SEO controls again. Looking at the page source code, the broken taxonomy page URLs were no longer there.
I re-scanned the site and the 404 issues have disappeared.