-
Notifications
You must be signed in to change notification settings - Fork 1
/
single.php
executable file
·37 lines (28 loc) · 1.83 KB
/
single.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php get_header(); ?>
<div id="content">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<article <?php post_class('grid_9') ?> id="post-<?php the_ID(); ?>">
<h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<span class="entry-meta"><small>Posted on: <?php the_time('l, F jS, Y') ?> in <?php the_category(', ') ?> by <a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>" title=" by <?php echo get_the_author(); ?>"><?php the_author(); ?>
<a href="<?php the_author_meta('user_url' );?>"><?php the_author_meta('user_url' );?></a>
</small></span>
<div class="clear"></div>
<?php the_content(); ?>
<div id="authorbio"><h2>About the Author</h2><?php if ( get_the_author_meta( 'description' ) ) : // If a user has filled out their description, show a bio on their entries ?>
<?php echo get_avatar( get_the_author_meta( 'user_email' ), 60 ); ?>
<?php the_author_meta( 'description' ); ?>
<a href="<?php the_author_meta('user_url' );?>"><?php the_author_meta('user_url' );?><h4>View all posts by <?php the_author(); ?> </h4></a>
<h3>Follow <?php the_author(); ?> on twitter</h3>
<a href="http://twitter.com/<?php the_author_meta('twitter' );?>"><?php the_author_meta('twitter' );?></a>
<?php endif; ?></div>
<hr />
<div class="clear"></div>
</article>
<?php endwhile; endif; ?>
<?php get_sidebar(); ?>
<?php comments_template(); ?>
<div class="grid_12"style="text-align:center;">
<?php posts_nav_link(' · ', 'previous page', 'next page'); ?>
</div>
<?php get_footer() ?>
</div><!-- /#content -->