-
Hi, I try to add the Rank Math SEO data by php, ’cause I have 1000 products and most of them are using similar values. So I’ve tried that:
update_post_meta($productID_de, “rank_math_description”, wp_kses_post($categorydescription_de));
update_post_meta($productID_de, “rank_math_focus_keyword”, $focus_keyword_de);
update_post_meta($productID_de, “rank_math_primary_product_cat”, $categoryID_de);update_post_meta($productID_en, “rank_math_description”, wp_kses_post($categorydescription_en));
update_post_meta($productID_en, “rank_math_focus_keyword”, $focus_keyword_en);
update_post_meta($productID_en, “rank_math_primary_product_cat”, $categoryID_en);
But it doesn’t work fine.The english products are broken and the seo score wasn’t calculated.
Can you help me to achieve this?Best Regards
Andreas
The ticket ‘add rank math data by php’ is closed to new replies.