Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header(); ?>
- <div id="mainwrapper">
- <div id="main" class="grid_10"><!-- main content begin -->
- <p class="bottomline">Search Tag: <strong class="red"><?php single_tag_title(); ?></strong></p>
- <div class="post">
- <?php $my_query = "showposts=5&cat=4"; $my_query = new WP_Query($my_query); ?><!-- Calls the main blogroll category -->
- <?php if ($my_query->have_posts()) : while ($my_query->have_posts()) : $my_query->the_post(); ?><!-- Starts the loop -->
- <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>><!-- Wraps posts in unique id and class -->
- <?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 -->
- <div class="entry-meta byline">
- <span class="meta-prep meta-prep-entry-date"><?php _e('Published ', 'your-theme'); ?></span>
- <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>
- <?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" ) ?>
- </div><!-- .entry-meta -->
- <div class="entry-content">
- <?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.
- $large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'large');
- echo '<a href="' . $large_image_url[0] . '" title="' . the_title_attribute('echo=0') . '" >';
- the_post_thumbnail('large');
- echo '</a>';
- }
- ?>
- <?php the_excerpt(); ?><!-- Calls post excerpts -->
- <p><a class="readmore" href="<?php echo get_permalink(); ?>">Read More...</a></p><!-- Displays Read More link -->
- </div><!-- entry-content end -->
- <p class="entry-meta highlightbox"><!-- Begin category and leave a comment section -->
- <span class="categories"><?php _e('Posted in', 'example'); ?> <?php the_category(' '); ?></span><!-- Calls the categories -->
- <?php the_tags('<span class="tags"> ' . __('Tags', 'example') . ' ', ' ', '</span>'); ?>
- <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>
- </p>
- </div><!-- unique post id and class end -->
- <?php endwhile; ?>
- <!-- <div class="pagination">
- <p class="older"><?php next_posts_link('Older posts'); ?></p>
- <p class="newer"><?php previous_posts_link('Newer posts'); ?></p>
- </div> -->
- <?php else : ?>
- <p class="no-posts"><?php _e('Sorry, no posts matched your criteria', 'example'); ?></p>
- <?php endif; ?>
- </div><!-- post end -->
- </div><!-- main content end -->
- <?php get_sidebar(); ?>
- </div><!-- #mainwrapper end -->
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement