Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php /* Template Name: blog */ ?>
- <?php get_header(); ?>
- <div id="content">
- <?php query_posts( 'post_type=blog');
- if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
- <div class="post" id="post-<?php the_ID(); ?>">
- <h2 class="posttitle"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
- <div class="postmetadata">
- <?php if( function_exists('the_tags') )
- the_tags(__('Browse: '), ', ', '<br />');
- ?>
- <?php edit_post_link(__('Edit'), ''); ?>
- </div>
- <div class="postentry">
- <?php the_content(__('Continue reading'). " ‘" . the_title('', '', false) . "’ »"); ?>
- </div>
- <div class="postmetadata"><?php the_time('j F Y') ?> <!-- <?php _e('by') ?> <?php the_author() ?> --></div>
- <?php comments_popup_link(__('Comment'), __('1 Comment'), __('% Comments')); ?>
- </div>
- <?php endwhile; ?>
- <div class="navigation">
- <div class="alignleft"><?php next_posts_link(__('« Previous Entries')) ?></div>
- <div class="alignright"><?php previous_posts_link(__('Next Entries »')) ?></div>
- </div>
- <?php else : ?>
- <div class="post">
- <h2 class="posttitle"><?php _e('Not Found') ?></h2>
- <div class="postentry"><p><?php _e('Sorry, no posts matched your criteria.'); ?></p></div>
- </div>
- <?php endif; ?>
- </div>
- <?php get_sidebar(); ?>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement