Advertisement
Ortund

Untitled

Nov 8th, 2011
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.68 KB | None | 0 0
  1. <?php
  2.     if (is_page('Welcome to Financial Passport')) {
  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="'.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.         endwhile; // end while
  17.         endif; // end if
  18.     }; // end if
  19. ?>
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement