The plugin not working correctly with rest api
-
Hi there,
First, let me thank you for this great plugin I really loved it!
But The plugin not working with rest API at all for WordPress!
I have added some code to make it work partly first it wasn’t shown on posts route
wp/v2/postsSo I have added this block of code to make it show:
`php
$meta_args = array(
‘type’ => ‘string’,
‘description’ => ‘A meta key associated with a string meta value.’,
‘single’ => true,
‘show_in_rest’ => true,
);
register_post_meta( ‘post’, ‘fifu_image_url’, $meta_args );
register_post_meta( ‘post’, ‘fifu_image_alt’, $meta_args );
`
Now I can makeget & postrequest to the fields but the feature image not get updated still with your fields data so I have to go each post manually and click update! from wp-adminso how I fix this?!
The topic ‘The plugin not working correctly with rest api’ is closed to new replies.