Grow your CSS skills. Land your dream job.

Carosel Slider and WordPress

  • # June 6, 2012 at 5:08 pm

    I have a carosel slider that I want to use with wordpress but I’m not quite sure how to use the wordpress loop and apply list items to two seperate lists. Below you will see an example of the code.





    • image01

      Creative


      Geek




    • ...




    # June 6, 2012 at 10:26 pm

    Okay, so I’ve worked with the code a little now.
    I’m at a loss on how to set the ei-slider-element based on which item is “current”.



    < ?php query_posts('category_name=homepage_slider&posts_per_page=10'); ?>
    < ?php if ( have_posts() ) : ?>

      < ?php while ( have_posts() ) : the_post(); ?>
    • < ?php the_post_thumbnail('large');?>

    • < ?php endwhile; ?>

    < ?php rewind_posts(); ?>

      < ?php while ( have_posts() ) : the_post(); ?>
    • Current

    • < ?php the_title(); ?>< ?php the_post_thumbnail('thumbnail');?>

    • < ?php endwhile; ?>

    < ?php endif; ?>

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".