Using the do_shortcode function in a repeater template
-
Hi,
Just trying to include some shortcode in my repeater template but it won’t function correctly.<?php $video_id = get_field('youtube_video_id'); echo do_shortcode('[video_lightbox_youtube video_id="'.$video_id.'" width="640" height="480" anchor="Play Me!"]'); ?>
Is this possible to do?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Using the do_shortcode function in a repeater template’ is closed to new replies.