fifu_image_url and fifu_image_alt is not working with REST API Post Creation
-
Dear Team,
Thanks for creating an awesome plugin. Can you tell me I am using fifu_image_url and fifu_image_alt as per documentation but featured image is not showing in the post
Your Documentation tells that:
{ "status": "publish", "content": "I'm using WP REST API!", "title": "Featured Image from URL", "excerpt": "My first post...", "fifu_image_url": "https://ps.w.org/featured-image-from-url/assets/icon-256x256.png", "fifu_image_alt": "Logo" }
I am also doing same thing in my REST API code
$content = array( // 'category' => array( 31 ), // my category id 'terms' => array('category' => array( $YourCategoryID ) ), 'post_type' => 'post', 'post_name' => $slug, //for slug 'post_status' => 'draft', 'post_title' => $title, 'post_content' => $body, 'fifu_image_url' => 'https://ps.w.org/featured-image-from-url/assets/icon-256x256.png', 'fifu_image_alt' => 'Logo', 'ping_status' => 'closed', 'comment_status' => 'closed' ); $result=$wpClient->newPost($title,$body,$content);
But featured image not setting as well as not appearing. can you please help me to solve this issue? will surely buy premium if you have solution of it.
Thanks
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘fifu_image_url and fifu_image_alt is not working with REST API Post Creation’ is closed to new replies.