Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter zeroshame

    (@zeroshame)

    I was able to create a workaround using the parameters of substr, by clarifying the the point after the video URL and headline, and before the next section’s text.:

    $content = strip_shortcodes(get_the_content());
    $content = strip_tags($content);
    
    $subdotcom = strpos($content, '.com');
    $suburl = ($subdotcom + 13);
    $substart = strpos($content, '.', $suburl) + 1;
    $subend = strpos($content, 'SYNOPSIS');
    $sublength = ($subend - $substart);
    
    echo substr( $content, $substart, $sublength );
Viewing 1 replies (of 1 total)