Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have a theme that is using PHP to create a link to a specific video page via permalink:

<div class="portfolio_filter_item <?php echo $category_string;?>">
                                    <div class="project-cell">
                                        <div class="project-cell-thumb">
                                            <div class="project-cell-thumb-window">
                                                <a href="<?php the_permalink(); ?>">
                                                    <img src="<?php echo $project_thumb;?>">
                                                </a>
                                                <div class="project-cell-bg"></div>
                                                <div class="project-cell-hover">
                                                    <div class="project-cell-title">
                                                        **<a href="<?php the_permalink(); ?>"> <?php the_title(); ?></a>**

Instead of referencing the permalink of the page, I need it to reference the embed code of the video on the page so I can open the link in a lightbox. I've installed a lightbox on the site that should automatically add the lightbox effect to any class "video lightbox.iframe". Any ideas? Thanks!

share|improve this question
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.