logo

$30
Video slider using Custom Fields

I need a jquery slider that will pull 2 - 3 custom fields within 1 post... The custom fields will have video embed codes from sites like vimeo, youtube etc...

Currently using the easySlider 1.7, I would like to keep using it but if I cant I would use something else.
Also have one thing with the easySlider - not able to show both numeric controls and next & previous controls at the same time - if you can help me with that bonus.

You can view the site I am working on here... (the videos are just samples) - http://www.ogradyproductions.com/barcelona/

Here is my current code...

<div class="featureHolder">
<div id="slider">

<ul>
<li class="slider post">
<div class="slider_text hentry">
<?php echo get_post_meta($post->ID, 'video', $single); ?>
</div>
</li>
</ul>

</div><!--END SLIDER ID-->
</div><!--END FEATURE HOLDER-->


I have created a second custom field key called "video2"... how can I put that in there so the slider will go through both...

Chad Mueller | 03/31/10 at 11:10pm | Edit


(2) Possible Answers Submitted...

  • avatar
    Last edited:
    03/31/10
    11:32pm
    Buzu B says:

    you need to pull both custom fields using php and then just use jquery to do the slides. Just add another

    <li class="slider post">

    <div class="slider_text hentry">

    <?php echo get_post_meta($post->ID, 'video', $single); ?>

    </div>

    </li>

    but instead of vide use vide2

  • avatar
    Last edited:
    04/01/10
    6:31pm
    Utkarsh Kukreti says:

    Add all the videos with the custom field 'video' (so that you can have any number of videos on any page)

    Then use this code :

    <div class="featureHolder">

    <div id="slider">

    <ul>
    <?php foreach(get_post_meta($post->ID, 'video', false) as $video): ?>
    <li class="slider post">
    <div class="slider_text hentry">
    <?php echo $video; ?>
    </div>
    </li>
    <?php endforeach; ?>
    </ul>

    </div><!--END SLIDER ID-->

    </div><!--END FEATURE HOLDER-->

This question has expired.





Current status of this question: Completed