I have around 1K posts in my blog. I use Yoast SEO Wordpress Plugin. All my posts doesn't has focus keyword added. Is there any way possible I can add title of the post dynamically to focus keyword field instead of copy paste one by one?
相关问题
- Views base64 encoded blob in HTML with PHP
- Laravel Option Select - Default Issue
- PHP Recursively File Folder Scan Sorted by Modific
- Can php detect if javascript is on or not?
- Using similar_text and strpos together
Yoast Focus Keywords is a post meta, you can create a loop that loops through all the posts and then update the post meta with get_the_title();
Sample code:
You can add the code inside your functions.php or create a page template with the code.
Update:
Create a blank page template that doesn't contain a loop, then add the below code into the file and create a page using this page template.
Visit the page using the page template and it should go through each post and display "TITLE Meta Updated" each time it goes through a post.