Passer la navigation

[Closed] How to edit how custom fields archive page appears on Google?

This support ticket is created Il y a 3 years, 3 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.

Ce sujet contient 4 réponses, a 3 voix.

Dernière mise à jour par Christopher Amirian Il y a 3 years, 3 months.

Assisté par: Christopher Amirian.

Auteur
Publications
#2564955

Is there a way to edit the page title and description that shows up in Google for an Archive Page of a custom post type? I edited the WordPress Archive name and description but this doesn't seem to do it. The generic archive name and my business address are what show up in Google.

Thanks in advance.

#2565215

Nigel
Supporter

Les langues: Anglais (English ) Espagnol (Español )

Fuseau horaire: Europe/London (GMT+01:00)

Hi there

Are you using an SEO plugin on your site? If so, which one?

If not, what's needed is to pay attention to the meta tags that appear in the page head of the archive document. (See lien caché)

Because you are using a CMS (WordPress), the page head is generated and you cannot edit it directly. Toolset itself doesn't directly modify such tags in the head.

The standard way to add content to the head in WordPress is by hooking into the wp_head action: https://developer.wordpress.org/reference/hooks/wp_head/. (That link includes examples of adding meta tags to the head.)

You will likely want to use the is_post_type_archive() function to selectively only add the meta tags on the archive pages in question: https://developer.wordpress.org/reference/functions/is_post_type_archive/

#2565441

Hey Nigel, I am using Rank Math.

#2565443

Forgot to add that the Rank Math menu doesn't show up on my backend when I am editing the archive page for my custom post type.

#2566295

Christopher Amirian
Supporter

Les langues: Anglais (English )

Hi there,

You will not have the Rank Math options in the Archive page creation menu in Toolset.

You'd better check the options inside Rank Math and the section for Meta Title option and search for the archive pages there and see if you can ad the title there:

lien caché

If not, then please use the method that my colleague mentioned using the WordPress code.

Thanks.

The topic ‘[Closed] How to edit how custom fields archive page appears on Google?’ is closed to new replies.