update_post_meta not working as expected
-
Hello and Thank you in advance for your help.
When we use “update_post_meta” we are able to save data to
_yoast_wpseo_title
_yoast_wpseo_focuskw
_yoast_wpseo_metadesclike this: update_metadata($id, ‘_yoast_wpseo_title’, ‘value-to-save’);
We are then able to retrieve that data without issue.
The problem we have is that the data we save does not appear on Yoast’s edit fields on the item in question. When we look at the page’s source code it is not there either.
Data is not recorded to ‘yoast_indexable’ when using update_metadata — Only to ‘termmeta’.
Data entered using the “editor” and pressing update/publish does get recorded properly and appears on both ‘yoast_indexable’ and thus on the page’s source code.
We are using the most up to date version of WP (Version 5.5.3) and YoastSEO (15.3).
About 7 months ago Collins Agbonghama asked (https://yoast.com/yoast-seo-14-0/) if this would continue to work to which the answer was “yes”. We have been unable to find if it still should work or if there is now another process.
Thank you again and for your insights into we might be doing wrong.
The page I need help with: [log in to see the link]
- The topic ‘update_post_meta not working as expected’ is closed to new replies.