Advertisement
Ortund

Untitled

Nov 8th, 2011
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.66 KB | None | 0 0
  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.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement