Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set Yoast title in template for custom post type archive

I'm using Yoast SEO plugin. I've got a custom post type that was initially setup as "news"... this was then changed to "blog". Even though the archive settings are set to be called "Blog", when posting the link in linkedin, the snippet still shows up as News.

Is there a way to explicitly set the Yoast title in the template?

enter image description here

like image 378
Rob Avatar asked Nov 07 '22 19:11

Rob


1 Answers

open up your database and search for the table wp_posts now look for the sql box that will have SELECT * FROM wp_posts written in it, in the bottom right corner of that box you will see "Edit Inline" left-click on that and now edit the sql to look like this SELECT * FROM wp_posts WHERE post_title LIKE "%blog%"

If anything comes up then you need to change it to the new title

Please Note: Always backup your database before making any changes

like image 154
CoderJoe Avatar answered Nov 14 '22 22:11

CoderJoe