SHARE
TWEET

Untitled

Ortund Nov 8th, 2011 135 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.                 query_posts('showposts=3&cat=' . get_cat_ID(dp_settings('featured')));
  5.                
  6.                 echo <div id='"featured">';
  7.                 if (have_posts()) {
  8.                         while (have_posts()) {
  9.                                 the_post();
  10.                                 echo '<div class="content">'.
  11.                                         '<a href="'.the_permalink().'">'.dp_attachment_image($post->ID, 'alt="' . $post->post_title . '"').'</a>'.
  12.                                         '<div class="title"><h1><a href="'.the_permalink().'">'the_title().'</a></h1></div>'.
  13.                                         '<p>[<a class="readmore" href="'.the_permalink().'">'.the_title().'</a>]</p>'.
  14.                                         '<div class="break"></div>'.
  15.                                         '</div>';
  16.                         }; // end while
  17.                 }; // 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
 
Top