SHARE
TWEET

Untitled

Ortund Nov 9th, 2011 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.         if (is_page('Welcome to F00 SIte')) {
  3.                 $tmp_query = $wp_query;
  4.                
  5.                 query_posts('showposts=3&cat=' . get_cat_ID(dp_settings('featured')));
  6.                
  7.                 echo '<div id="featured">';
  8.                 if (have_posts()) :
  9.                         while (have_posts()) : the_post();
  10.                                 echo '<div class="content">'
  11.                                         '<a href="'.get_permalink().'">'.dp_attachment_image($post->ID, 'alt="'.$post->post_title.'"').'</a>'.
  12.                                         '<div class="title"><h1><a href="'.get_permalink().'">'.get_title().'</a></h1></div>'.
  13.                                         '<p>[<a class="readmore" href="'.get_permalink().'">'.get_title().'</a>]</p>'.
  14.                                         '<div class="break"></div>'.
  15.                                         '</div>';
  16.                         endwhile; // end while
  17.                 endif; // end if
  18.         }; // end if
  19. ?>
  20.  
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top