For example: “Rank Math SEO doesn’t always work for KEYWORD” will fail to see the keyword, while the alt text “Rank Math SEO does not always work for KEYWORD” will succeed.
]]>I’ve already checked the user options and YoastSEO options regarding SEO analysis, readability and insights and they’re all correct.
I’ve created a new admin user and it has the same issue.
I’ve created a new editor user and it has the same issue.
I’ve updated all my plugins and I’ve updated WordPress to the latest version.
What can I do to solve the problem? Thanks
]]>Thank you
]]>I had recently started to use your SEO plugin and really excited about this. I’m fine with everything except for the Focus Keyword. I wasn’t able to find how to automatically add a Focus Keyword either myself nor in Google. For instance, I need to use my product’s title as a Focus Keyword. There are more than 6k products in my store and there’s no way I would do it manually. I would appreciate your help with this using any variables, shortcodes, php codes etc.
Thank you for your time,
Yurii
]]>pls help me debugging or understanding this code to get my desired result i just need a field of focus keyword in quick edit undertab in my post on my dashboard I tried to find plugin for this but couldn’t find any The nearest plugin I found is custom Bulk/Quick Edit which adds other fields in quick edit like excerpt field but can’t add yoost focus keyword field.
add_action( 'quick_edit_custom_box', 'my_quick_edit_custom_box', 10, 2 );
function my_quick_edit_custom_box( $column_name, $post_type ) {
if ( 'yoast_focus_keyword' === $column_name ) {
?>
<fieldset class="inline-edit-col-right inline-edit-yoast-focus-keyword">
<div class="inline-edit-col">
<label>
<span class="title"><?php esc_html_e( 'Yoast Focus Keyword', 'textdomain' ); ?></span>
<span class="input-text-wrap">
<?php $keyphrase = get_post_meta( get_the_ID(), '_yoast_wpseo_focuskw', true ); ?>
<input type="text" name="yoast_focus_keyword" value="<?php echo esc_attr( $keyphrase ); ?>">
</span>
</label>
</div>
</fieldset>
<?php
}
}
]]>add_action( ‘quick_edit_custom_box’, ‘my_quick_edit_custom_box’, 10, 2 );function my_quick_edit_custom_box( $column_name, $post_type ) { if ( ‘yoast_focus_keyword’ === $column_name ) { ?> <fieldset class=”inline-edit-col-right inline-edit-yoast-focus-keyword”> <div class=”inline-edit-col”> <label> <span class=”title”><?php esc_html_e( ‘Yoast Focus Keyword’, ‘textdomain’ ); ?></span> <span class=”input-text-wrap”> <?php $keyphrase = get_post_meta( get_the_ID(), ‘_yoast_wpseo_focuskw’, true ); ?> <input type=”text” name=”yoast_focus_keyword” value=”<?php echo esc_attr( $keyphrase ); ?>”> </span> </label> </div> </fieldset> <?php }}
Thanks In Advance Pls help Me to just get/add a field of focus keyword in under quick edit tab of all post
]]>I tried this smartcrawl shows focus keyword added, but i want to confirm can i add %%title%% in Focus Keyword?
]]>function update_product_focus_keywords()
{
$products = get_posts(array(
‘posts_per_page’ => 100,
‘post_type’ => ‘product’ //replace post with the name of your post type
));
foreach ($products as $p) {
$keywords = [];
if (get_the_terms($p->ID, ‘product_cat’)) {
foreach(get_the_terms($p->ID, ‘product_cat’) as $term) {
$keywords[] = strtolower($term->name);
}
update_post_meta($p->ID, ‘rank_math_focus_keyword’, implode(“, “, array_unique($keywords)));
}
}
}
add_action(‘init’, ‘update_product_focus_keywords’);`
When the admin sets the keyword again, it works without problems and the SEO details appear correctly.
PS: All my plugins and WordPress version are updated
Screenshot: https://prnt.sc/ED9nhDoFtqwp
Email me, so I can give you contributor or Author account to see the problem yourself
Email: [email protected]