Support » Plugin: Featured Video Plus » Batch inject video URLs?

  • I’ve got 300 post IDs. I’ve got 300 youtube URLs.

    I don’t want to do this one-by-one.

    Does anyone know how to inject _fvp_video entries into wp_postmeta that the FVP plugin will pick up and interpret? I tried injecting all of them with the meta_value string, but the plugin doesn’t hook into them.

    Is there something else I have to create aside from the wp_postmeta entries?

Viewing 2 replies - 1 through 2 (of 2 total)
  • I would also like to know, is there a custom field I could fill from which FVP would pick up the video url?

    I am creating posts with an aggregation plugin, so the only way for me to indicate the video url would be through a custom field.

    Plugin Author Alex


    The meta field ist _fvp_video. It needs to be a serialized PHP associative array with at least the provider, full and valid keys.

    update_post_meta( $post_id, '_fvp_video', array(
        "provider" => "youtube",
        "full" => "",
        "valid" => "true",
    ) );

    This will not automatically result in the video thumbnail being fetched tho. You could also send requests to admin-ajax.php using a valid loggedin user and _fvp_nonce. Check the network tab of your browsers console while adding a video through the featured video meta box on the post edit screen to see how the requests look.

    Hope it works,

    • This reply was modified 4 years, 10 months ago by Alex.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Batch inject video URLs?’ is closed to new replies.