Forums

any filter which can parse youtube and vimeo videos (2 posts)

  1. phpaddicted
    Member
    Posted 7 months ago #

    Hi,

    I have file index.php in which code is like this :

    include('video.php');
    Some code here....
    the_content();

    Now video.php file is like this :

    <div class="post-video">
    	<?php echo apply_filters('the_content', getxyz("video_url")); ?>
    </div>

    Now this all things working file but problem is when I use any plugin like sharedaddy which insert social icons two times. Because I called apply_filters('the_content'.. in video and then again the_content. So is there any filter available to parse youtube and vimeo URL and show video which I can use instead of 'apply_filters('the_content'....', So i can use it in video.php to show video of youtube and vimeo.

    Ankur

  2. phpaddicted
    Member
    Posted 7 months ago #

    Hi,

    Is anyone there who can help me in this? Pls its urgent.

    Ankur

Reply

You must log in to post.

About this Topic