May 4, 2011

How to automatically populate Yoast Focus Keyphrase and Keyphrase Synonyms | CyberSEO Pro | CyberSEO support forum

Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_TopicIcon
How to automatically populate Yoast Focus Keyphrase and Keyphrase Synonyms
Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 (0 votes) 
August 22, 2026
6:15 pm
Avatar
atanbakouee
Member
Members
Forum Posts: 3
Member Since:
July 28, 2026
sp_UserOfflineSmall Offline

Hello,

I have configured CyberSEO Pro to use Anthropic Claude Sonnet 4.6 for AI article generation.

The AI article generation itself is working correctly. The problem is with automatically saving the generated SEO data into Yoast SEO.

Here is an example from my latest log:

Login to see the quote

Then CyberSEO generated the meta description successfully and the log showed:

Login to see the quote

It then continued with:

Login to see the quote

 

However, after the post was created, the Yoast SEO Focus Keyphrase field is still empty.

I also tried using the Custom Fields setting:

Login to see the quote

but the Focus Keyphrase is still not populated in Yoast.

I need CyberSEO to automatically save the AI-generated keyphrase into Yoast's Focus keyphrase field for every imported post.

 

My questions:

  1. What is the correct CyberSEO Custom Fields syntax for saving %gpt_keyphrase_en% into Yoast SEO's Focus Keyphrase field?
  2. Should the target field be:
    Login to see the quote
 

or another Yoast meta field?

  1. Does CyberSEO have a built-in placeholder or setting specifically for Yoast Focus Keyphrase, rather than using Custom Fields?
  2. How can I automatically populate Yoast Keyphrase synonyms as well?

For example, if CyberSEO generates:

Login to see the quote

 

I want CyberSEO to save these values into the corresponding Yoast fields automatically.

According to Yoast's WordPress implementation, the focus keyphrase is stored in the post meta field _yoast_wpseo_focuskw, while synonyms use a separate Yoast field. I want to make sure CyberSEO is writing to the correct fields and in the correct format.

  1. Does CyberSEO require a specific format such as JSON/array for the Yoast synonyms field?
  2. Is there a specific configuration in AI Article Generation, Post Templates, or Custom Fields that must be enabled for CyberSEO to save the generated %gpt_keyphrase_en% into Yoast?

Please provide the exact CyberSEO configuration and field syntax I should use.

My goal is:

Login to see the quote

I would also like the equivalent workflow for Keyphrase Synonyms.

Thank you.

August 23, 2026
7:43 am
Avatar
CyberSEO
Admin
Forum Posts: 4274
Member Since:
July 2, 2009
sp_UserOfflineSmall Offline

The Focus Keyphrase field is basically just an internal calculator for your WordPress dashboard. It doesn't add any meta tags to your HTML, and Google never sees it. If you get Claude to extract a key phrase from an article it just wrote and then you put that same phrase into Yoast, you'll end up with a closed loop and a green light score. Yoast will grade the text against a word it generates, which makes it seem like it's got good SEO, but it doesn't actually help your search engine rankings. The only AI-generated fields that matter to Google are your title and meta description.

You cannot use those shortcodes in the "Custom fields" settings box (details: https://www.cyberseo.net/content-syndicator/#custom-fields). The way CyberSEO Pro works is that custom fields are always processed before the content of a post is actually created (details: https://www.cyberseo.net/cyberseo-pro-workflow/).

If you don't mind spending API tokens to generate a keyphrase that nobody will ever see except for the Yoast SEO plugin inside your WordPress editor, there is a working solution. To do this, you need to use the "Custom PHP code" box. This box is located under the Expert tab in your feed settings. Just paste the following code there:

Login to see the code

Note that Yoast SEO expects to see exactly one specific keyword phrase in that field, so a list of keywords separated by commas will not work correctly.

Regarding your question about Yoast Keyphrase synonyms, this is a feature that only Yoast SEO Premium has. Its only purpose is to help the internal Yoast content analysis tool recognize different versions of words. For example, if your focus keyphrase is "frozen blueberries," adding "frozen mixed berries" as a synonym tells the Yoast calculator to count both phrases when grading your text in the WordPress editor.

Just like the main focus keyphrase, these synonyms are never shown on your website's front page or in search engine results, like Google. They exist purely to help the Yoast traffic light turn green. When it comes to autoblogging, it doesn't make much sense to generate and save synonyms. Since the posts are published automatically, nobody is manually opening each post in the WordPress editor to check the SEO score anyway. It basically uses API tokens to fill a hidden dashboard grading tool.

If you still want to use this, you should know that Yoast Premium does not store synonyms as plain text. It saves them in a special order in a special section of the Yoast SEO database. You can't just put a text string from Claude into that field. You would need to write extra PHP code in the "Expert" tab to catch the AI-generated synonyms, encode them into the exact JSON structure that Yoast Premium expects, and then assign them to the post meta array.

Forum Timezone: Europe/Amsterdam

Most Users Ever Online: 1026

Currently Online:
21 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

ninja321: 87

harboot: 75

s.baryshev.aoasp: 68

Freedom: 61

Pandermos: 54

tormodg: 53

Member Stats:

Guest Posters: 338

Members: 3311

Moderators: 0

Admins: 1

Forum Stats:

Groups: 1

Forums: 5

Topics: 1759

Posts: 9076

Newest Members:

news.ahwal, info.sindimedia, jshallo, cycling84.icloud, ahingunes, davies10vl

Administrators: CyberSEO: 4274