Support

Account

Home Forums General Issues Custom Youtube Field Not Displaying

Unread

Custom Youtube Field Not Displaying

  • Custom youtube field stopped working all of a sudden. It just shows a blank youtube iframe on the front end with an error message (An error occurred. Please try again later…).

    Also when viewing the html code, it doesn’t look like it’s getting the value of the custom field.

    <iframe src=”https://www.youtube-nocookie.com/embed/”></iframe>

    Here’s our existing code:
    <?php
    global $product;
    $pp_id = $product->get_id();
    $ff = get_fields($pp_id);
    if(!empty($ff[‘youtube_section’])){
    ?>
    <iframe src=”https://www.youtube.com/embed/<?= $ff[‘youtube_section’][‘youtube’];?>”></iframe>

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.