How To Change Wordpress Category Title
-
My categories are indexed and I want to change the category page title. At present it just defaults to the category name but I want to set a different page title. For example I want the category to be 'Motor Cars' but I want the category page title to be 'Buy Motor Cars - New And Used'.
How can I do this?
-
In wordpress editor, edit archives.php, find the following code block and change as needed:
<code># term->Title(); ?></code> -
IThanks - don't have that exact code but I do have this?
Top sites in our ‘’ Category
-
It is hard for me to tell, as your template may vary. That does appear to be the correct spot, try it out and see what happens.
Make sure you are backing up for wordpress database and install before you go changing this stuff.
-
That doesn't appear to work for me. Are there any plugins maybe?
-
I have been looking at this recently also and you can do it with the newest version of the Yoast SEO plugin.
Navigate to Posts>Categories and then select the category you would like to edit. On this page you can input your Meta Title and Description, breadcrumbs title and title and indexing status using Yoast
Hope this helps
James
-
The easiest way is to do it is from WordPress itself, as in the CMS settings, changing the code itself can get tricky and problematic especially when you come to update.
You can change the default meta title from the Yoast SEO plug-in > search appearance > Taxonomies tab see here https://www.print4hospitality.co.uk/edit-category-titles/
or you can of course edit individual pages, which of course is not very practical for a site-wide change.