Support » Plugin: Schema App Structured Data » Variable $featured_video_url does not exist

  • Resolved universalwebservices


    In Thing.php, $featured_video_url initialized within a conditional. However, it is accessed outside of that conditional.

    Updating /lib/HunchSchema/Thing.php
    to return if the get_the_post_video_url function doesn’t exist seems to do the trick

    if ( function_exists( ‘get_the_post_video_url’ ) ) {
    $featured_video_url = get_the_post_video_url();
    else {

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.