Support Forum

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support WPSP with videos Reply To: WPSP with videos

#15348
Tom
Keymaster

So this is the function you’re using?:

add_action( 'wpsp_before_header', function() {
    $video = get_post_meta( get_the_ID(), 'your_field_name', true );

    if ( $video ) {
        echo $video;
    }
} );

Have you updated the post meta name to the name of your custom field?

If you do the following, does anything display?:

add_action( 'wpsp_before_header', function() {
    $video = get_post_meta( get_the_ID(), 'your_field_name', true );

    var_dump( $video );

    if ( $video ) {
        echo $video;
    }
} );