Home › Forums › Pro Support › WPSP with videos › Reply To: WPSP with videos
May 5, 2020 at 4:56 pm
#15348
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;
}
} );