• 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/posts

    So 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 make get & post request 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-admin

    so how I fix this?!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author fifu.app

    (@marceljm)

    Hi, @heshamshawky.

    Take a look at FIFU settings > WP/WooCommerce REST API. There are usage examples there. However, for now the integration was done in the Premium version only.

    Thread Starter heshamshawky

    (@heshamshawky)

    yes, I saw the examples but didn’t work for me that what the ticket about?!

    my problem is that field image url has url already but not reflecting on feature image I need to click update manually to make it work from wp admin.

    I guess it’s not related to premium version what I’m talking about

    Plugin Author fifu.app

    (@marceljm)

    Hi, @heshamshawky.

    What you are doing isn’t enough. You need to create the image metadata. For that you can:
    1) access FIFU settings > metadata
    2) clean metadata
    3) enable fake internal featured image (the second toggle).

    And all your images will be shown.

    Of course in the Premium version the metadata is created automatically. But here you would need to follow those steps.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘The plugin not working correctly with rest api’ is closed to new replies.