Advertisement
Guest User

easyslider

a guest
Feb 16th, 2012
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.77 KB | None | 0 0
  1. <?php $option =  get_option('scl_options'); ?>
  2. <div id="slider">
  3.         <ul>
  4.         <?php $loop = new WP_Query( array( 'post_type' => 'slider', 'posts_per_page' => $option['scl_num_sld'] ) ); ?>
  5.         <?php while ( $loop->have_posts() ) : $loop->the_post(); ?>
  6.          <li>
  7.         <?php the_post_thumbnail(); ?>
  8.             </li>
  9. <div class="slider-content">
  10.             <?php the_title( '<h2 class="entry-title"><a href="' . get_post_meta($post- rel="nofollow">ID, 'slide_link', TRUE) . '" title="' . the_title_attribute( 'echo=0' ) . '" rel="bookmark">', '</a></h2>' ); ?>
  11.                 <a href="<?php echo get_post_meta($post- rel="nofollow">ID, 'slide_link', TRUE); ?>"><?php the_excerpt(); ?></a>
  12.             </div>
  13.         <?php endwhile; ?>
  14.  
  15.         </ul>
  16. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement