Skip Navigation

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

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

Last updated by Christopher Amirian 3 years ago.

Assisted by: Christopher Amirian.

Author
Posts
#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

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

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

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

Languages: English (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:

hidden link

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.