Saltar navegación

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

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

Este tema contiene 4 respuestas, tiene 3 mensajes.

Última actualización por Christopher Amirian 3 years, 3 months ago.

Asistido por: Christopher Amirian.

Autor
Mensajes
#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
Colaborador

Idiomas: Inglés (English ) Español (Español )

Zona horaria: 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 enlace oculto)

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
Colaborador

Idiomas: Inglés (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:

enlace oculto

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

Thanks.

El debate ‘[Cerrado] How to edit how custom fields archive page appears on Google?’ está cerrado y no admite más respuestas.