- This topic has 2 replies, 2 voices, and was last updated 13 years, 7 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP Lightbox Ultimate › Need Help With Template Usage
I am attempting to use the plugin in a custom template for a specific category.
– the video info is being pulled from a custom field (video)
– I have uploaded an image as the placeholder
– I do not receive any php errors but there is nothing in the content box (not even the image “placeholder”
Below is the code
` <?php $video=get_post_meta($post->ID, ‘video’, true); ?>
<?php if ( $video ) : ?>
<h4 class=”videomodule-title”>Video</h4>
<div id=”video”>
<?php do_shortcode(‘[wp_lightbox_fancybox_youtube_video link=”http://www.youtube.com/watch?v=’ . $video.'” title=”<?php echo c2c_get_custom(‘Artistname’); ?>” source=”http://www.xxxx.com/wp-content/images/video_placeholder.png”%5D’); ?>
</div>
<?php endif; ?>
`
I figured this out. In your example on the page
WordPress Lightbox Ultimate Plugin – Display Media in a Fancy Lightbox Overlay
it should be <?php echo do_shortcode
not <?php do_shortcode
Thanks. I updated the comment.