Guest User

Untitled

a guest
Mar 14th, 2012
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.41 KB | None | 0 0
  1.  <div id="featured_slide">
  2.         <ul id="featurednews">
  3.           <?php
  4.             $sticky = get_option('sticky_posts');
  5.             $slidePosts = array_slice($sticky , 0,3);
  6.             $featuredPosts = array_slice($sticky , 4, 3);
  7.             $slide = new WP_Query(array('post__in' => $slidePosts));
  8.             if( $slide->have_posts() ) : while($slide->have_posts() ) : $slide->the_post()
  9.           ?>  
  10.             <li><?php if (has_post_thumbnail() ) the_post_thumbnail('slider'); ?>
  11.             <div class="panel-overlay">
  12.               <h2><?php the_title(); ?></h2>
  13.               <p><?php echo $__theme->excerpt(10); ?><br />
  14.                 <a href="<?php the_permalink(); ?>">Continue Reading &raquo;</a></p>
  15.             </div>
  16.           </li>
  17.           <?php endwhile; endif;?>
  18.         </ul>
  19.       </div>
  20.     </div>
  21.     <div class="column">
  22.       <ul class="latestnews">
  23.         <?php
  24.            
  25.             $destaques = new WP_Query(array('showposts' => 3 , 'post__in' => $featuredPosts));
  26.             if( $destaques->have_posts() ) : while($destaques->have_posts() ) : $destaques->the_post()
  27.         ?>  
  28.         <li><?php if (has_post_thumbnail() ) the_post_thumbnail('post'); ?>
  29.             <p><strong><a href="<?php the_permalink() ?>"><?php the_title();  ?></a></strong> <?php  echo $__theme->excerpt(30); ?></p>
  30.         </li>
  31.         <?php endwhile; endif; ?>
  32.       </ul>
  33.     </div>
Advertisement
Add Comment
Please, Sign In to add comment