Stop being a n00b update

This commit is contained in:
Mike Francis 2014-02-03 15:33:44 +00:00
parent f8fc7a5487
commit 006d3c8235
7 changed files with 42 additions and 82 deletions

View file

@ -11,9 +11,9 @@
<article <?php post_class(); ?>>
<header role="heading">
<h3 class="title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
<p class="date"><time pubDate datetime="<?php echo $post->post_date; ?>"><?php echo human_time_diff( strtotime( $post->post_date ) ); ?></time></p>
<p class="comments"><?php comments_popup_link( __( 'No comments yet' ), __( '1 comment' ), __( '% comments' ) ); ?></p>
<h3 class="post__title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
<p class="post__date"><time><?php echo human_time_diff( strtotime( $post->post_date ) ); ?></time></p>
<p class="post__comments"><?php comments_popup_link( __( 'No comments yet' ), __( '1 comment' ), __( '% comments' ) ); ?></p>
</header>
<?php the_content( __( 'Read More' ) ); ?>
@ -22,10 +22,14 @@
<?php endwhile; ?>
<div class="pagination">
<div class="alignleft"><?php previous_posts_link( __( 'Previous Entries' ) ) ?></div>
<div class="alignright"><?php next_posts_link( __( 'Next Entries' ) ) ?></div>
</div>
<?php
echo paginate_links(array(
'base' => str_replace( 99999999, '%#%', esc_url( get_pagenum_link( 99999999 ) ) ),
'format' => '?paged=%#%',
'current' => max( 1, get_query_var('paged') ),
'total' => $jobs->max_num_pages
));
?>
</main>
@ -37,4 +41,4 @@
</div>
<?php get_footer(); ?>
<?php get_footer(); ?>