the answer for all question about Oxygen Builder plugin and WordPress

Hey everyone.

Hey everyone.
Been trying to get this work and finally realised I need some help.
I have a Flickity image slider and want to add an iFrame to the first slide via an ACF field (virtual_tour)
Here is the code im using so far but can’t work out how to insert $vimeo_vid into my iFrame src
Any ideas?

if ( $images ) {
foreach( $images as $image ) {
echo wp_get_attachment_image( $image[‘ID’], $size );

wp_enqueue_style( ‘flickity-css’ );
wp_enqueue_script( ‘flickity’ );



1 Comment
  1. Robert Chan says

    assuming the rest of the code works, you can insert a variable inside an echo like so
    echo ‘‘;

    it’ll put whatever value $vimeo_vid is there, assuming the field you’re using is the vimeo video id. if it’s the whole url you can do:

    echo ‘‘;

    you should probably add a check if $vimeo_vid is empty/null before you add it to the iframe tag.

Leave A Reply

Your email address will not be published.

Oxyrealm Docs