😇[SEO] Add meta keywords rank math seo (ok)
https://wordpress.org/plugins/add-meta-tag-keywords/
function AMTK_to_head(){
$meta_keywords_str = get_post_meta(get_the_ID(),'rank_math_focus_keyword', true);
if(!empty($meta_keywords_str)){
?>
<?php
echo '<meta name="keywords" content="'.esc_attr($meta_keywords_str).'">';
}
}
add_action('wp_head', 'AMTK_to_head' );
PreviousHow to Add Custom Fields to User Profile Page in WordPress (ok)NextGhi dữ liệu dạng value object trong bảng wp_options (ok)
Last updated
Was this helpful?