(website is using Elementor in case that makes a difference but still fine for me!)
]]>Does it matter if these stop words are there or not and will it affect my seo ranking or do I just ignore it?
Thanks for your help
Judith
]]>1-connecting with google search console.
2- Good keyword suggestion .
3-featured image as open graph image automatically.
]]>update_post_meta($post_id, '_aioseop_description', $meta_description);
update_post_meta($post_id, '_aioseop_keywords', $meta_keywords);
I don’t know if I’m using the correct constants (_aioseop_description and _aioseop_keywords) or not, but I can’t insert what I need into AIOSEO, nor do I have any kind of error.
I would appreciate any help on this, and I’m attaching my full code, just in case.
// Extract the title
if (preg_match('/<title>(.*?)<\/title>/i', $page_content, $matches)) {
$page_title = $matches[1];
error_log('Page title found: ' . $page_title);
} else {
error_log('Page title not found.');
}
// Extract meta description
if (preg_match('/<meta name="description" content="([^"]*)"/i', $page_content, $matches)) {
$meta_description = $matches[1];
update_post_meta($post_id, '_aioseop_description', $meta_description);
error_log('Meta description updated: ' . $meta_description);
} else {
error_log('Meta description not found.');
}
// Extract meta keywords (if available)
if (preg_match('/<meta name="keywords" content="([^"]*)"/i', $page_content, $matches)) {
$meta_keywords = $matches[1];
update_post_meta($post_id, '_aioseop_keywords', $meta_keywords);
error_log('Meta keywords updated: ' . $meta_keywords);
} else {
error_log('Meta keywords not found.');
}
$post = array(
'ID' => $post_id,
'post_title' => $page_title,
);
wp_update_post($post);
]]>I have two WordPress sites.
Using the same Theme.
One does not show the Keywords fields for the AIOSEO plugin in either the Dashboard‘s or the Page‘s Advanced Tab.
Screenshot link to illustrate, via. DropBox:
https://www.dropbox.com/s/vcvb10o5fq92p1b/Screenshot%202024-08-09%20at%2012.18.40.png?dl=0
What am I missing please?
Thank you