Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if (is_page('Welcome to F00 Site')) {
- $tmp_query = $wp_query;
- query_posts('showposts=3&cat=' . get_cat_ID(dp_settings('featured')));
- echo '<div id="featured">';
- if (have_posts()) :
- while (have_posts()) : the_post();
- echo '<div class="content">' .
- '<a href="'.the_permalink().'">'.dp_attachment_image($post->ID, 'alt="'.$post->post_title.'"').'</a>'.
- '<div class="title"><h1><a href="'.the_permalink().'">'.the_title().'</a></h1></div>'.
- '<p>[<a class="readmore" href="'.the_permalink().'">'.the_title().'</a>]</p>'.
- '<div class="break"></div>'.
- '</div>';
- endwhile; // end while
- endif; // end if
- }; // end if
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement