enable in theme php
-
hey, I’m building my own theme, and i want to use wp video lightbox inside the template php files itself.
something like that (the bold part is an example of what i need):
<?php if ( has_post_thumbnail() ) {
$full_thumbnail = wp_get_attachment_image_src( get_post_thumbnail_id(), ‘full’ );
$content = ‘ID, ‘youtube_address’, true) . ‘?autoplay=1&autohide=1″ title=”‘ . the_title_attribute(‘echo=0’) . ‘” class=”colorbox-link”>’ . $full_thumbnail[0] . ‘‘;
if ( function_exists(‘wp_video_lightbox’) )
$content = wpvl_activate($content);
echo $content;
}
how can i do this? thank you
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘enable in theme php’ is closed to new replies.