You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I notice that if I use post() instead of cv_location(), the metafields get populated correcrtly with the values but the post gets added to the post post type and not the CV Location post type.
The text was updated successfully, but these errors were encountered:
Are you registering the meta using register_post_meta( 'your_cpt_name', [] ); on the PHP side? meta needs to be properly registered in order for the meta key to work. We need to add a better guide for this to the site, apologies for any confusion.
I know it's been a while but if you're using register_post_meta (introduced I believe in WP 4.9.8) and you're still seeing this issue, then please let us know. I'm going to leave it open as a documentation issue for now.
I have a metafields that is assigned to a custom post which I added as a REST API field:
And I also have the methods:
If I test adding a new post/update and value to
field_1
andfield_2
through Postman, it works fine.But when I try to add a value to the metafields, they don't seem to get added. Here is a snippet of the code I have:
I notice that if I use
post()
instead ofcv_location()
, the metafields get populated correcrtly with the values but the post gets added to the post post type and not the CV Location post type.The text was updated successfully, but these errors were encountered: