Advertisement
Guest User

GTSB

a guest
Apr 11th, 2012
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.02 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3. <div id="mainwrapper">
  4. <div id="main" class="grid_10"><!-- main content begin -->
  5.  
  6. <p class="bottomline">Search Tag: <strong class="red"><?php single_tag_title(); ?></strong></p>
  7.  
  8. <div class="post">
  9. <?php $my_query = "showposts=5&cat=4"; $my_query = new WP_Query($my_query); ?><!-- Calls the main blogroll category -->
  10. <?php if ($my_query->have_posts()) : while ($my_query->have_posts()) : $my_query->the_post(); ?><!-- Starts the loop -->
  11.  
  12. <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>><!-- Wraps posts in unique id and class -->
  13.  
  14. <?php the_title('<h2 class="entry-title"><a href="' . get_permalink() . '" title="' . the_title_attribute('echo=0') . '" rel="bookmark">', '</a></h2>'); ?><!-- Calls the post title -->
  15. <div class="entry-meta byline">
  16. <span class="meta-prep meta-prep-entry-date"><?php _e('Published ', 'your-theme'); ?></span>
  17. <span class="entry-date"><abbr class="published" title="<?php the_time('Y-m-d\TH:i:sO') ?>"><?php the_time( get_option( 'date_format' ) ); ?></abbr></span>
  18. <?php edit_post_link( __( 'Edit', 'your-theme' ), "<span class=\"meta-sep\">|</span>\n\t\t\t\t\t\t<span class=\"edit-link\">", "</span>\n\t\t\t\t\t" ) ?>
  19. </div><!-- .entry-meta -->
  20.  
  21. <div class="entry-content">
  22. <?php if ( has_post_thumbnail()) { // displays image with post excerpt. Width must be 560px to accomodate container width and img 5px border. Ideal dimension is 560x300px.
  23. $large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'large');
  24. echo '<a href="' . $large_image_url[0] . '" title="' . the_title_attribute('echo=0') . '" >';
  25. the_post_thumbnail('large');
  26. echo '</a>';
  27. }
  28. ?>
  29.  
  30. <?php the_excerpt(); ?><!-- Calls post excerpts -->
  31. <p><a class="readmore" href="<?php echo get_permalink(); ?>">Read More...</a></p><!-- Displays Read More link -->
  32. </div><!-- entry-content end -->
  33.  
  34. <p class="entry-meta highlightbox"><!-- Begin category and leave a comment section -->
  35. <span class="categories"><?php _e('Posted in', 'example'); ?> <?php the_category(' '); ?></span><!-- Calls the categories -->
  36. <?php the_tags('<span class="tags"> ' . __('Tags', 'example') . ' ', ' ', '</span>'); ?>
  37. <span class="sep">|</span><span class="commentbox"><?php comments_popup_link(__('Talk about it', 'example'), __('1 Response', 'example'), __('% Responses', 'example'), 'comments-link', __('Comments closed', 'example')); ?></span>
  38. </p>
  39.  
  40. </div><!-- unique post id and class end -->
  41. <?php endwhile; ?>
  42.  
  43. <!-- <div class="pagination">
  44. <p class="older"><?php next_posts_link('Older posts'); ?></p>
  45. <p class="newer"><?php previous_posts_link('Newer posts'); ?></p>
  46. </div> -->
  47.  
  48. <?php else : ?>
  49.  
  50. <p class="no-posts"><?php _e('Sorry, no posts matched your criteria', 'example'); ?></p>
  51.  
  52. <?php endif; ?>
  53.  
  54. </div><!-- post end -->
  55.  
  56. </div><!-- main content end -->
  57.  
  58. <?php get_sidebar(); ?>
  59.  
  60. </div><!-- #mainwrapper end -->
  61.  
  62. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement