JavaScript for WordPress › Forums › Gutenberg Development › Saving Post Meta on Custom Post type not working › Reply To: Saving Post Meta on Custom Post type not working
May 13, 2019 at 6:51 pm
#107518
Barry Ross Jr
Participant
I used a custom rest route and the wp.apiFetch to send the data and saved it using the wordpress method ‘update_post_meta’ and that stores it in the database and does show the data in the sidebar after reload.
However, setAttributes still doesn’t work even if I turn off the above and just use what should be the normal way ( using setAttributes).