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.
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/
Hey Nigel, I am using Rank Math.
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.
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.