initial commit
This commit is contained in:
77
author.php
Normal file
77
author.php
Normal file
@@ -0,0 +1,77 @@
|
||||
<?php get_header(); ?>
|
||||
|
||||
|
||||
<!-- section -->
|
||||
<section>
|
||||
|
||||
<?php if (have_posts()): the_post(); ?>
|
||||
|
||||
<h1><?php _e( 'Author Archives for ', 'dis2019' ); echo get_the_author(); ?></h1>
|
||||
|
||||
<?php if ( get_the_author_meta('description')) : ?>
|
||||
|
||||
<?php echo get_avatar(get_the_author_meta('user_email')); ?>
|
||||
|
||||
<h2><?php _e( 'About ', 'dis2019' ); echo get_the_author() ; ?></h2>
|
||||
|
||||
<?php echo wpautop( get_the_author_meta('description') ); ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php rewind_posts(); while (have_posts()) : the_post(); ?>
|
||||
|
||||
<!-- article -->
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||
|
||||
<!-- post thumbnail -->
|
||||
<?php if ( has_post_thumbnail()) : // Check if Thumbnail exists ?>
|
||||
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
|
||||
<?php the_post_thumbnail(array(120,120)); // Declare pixel size you need inside the array ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<!-- /post thumbnail -->
|
||||
|
||||
<!-- post title -->
|
||||
<h2>
|
||||
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a>
|
||||
</h2>
|
||||
<!-- /Post title -->
|
||||
|
||||
<!-- post details -->
|
||||
<span class="date"><?php the_time('F j, Y'); ?> <?php the_time('g:i a'); ?></span>
|
||||
<span class="author"><?php _e( 'Published by', 'dis2019' ); ?> <?php the_author_posts_link(); ?></span>
|
||||
<span class="comments"><?php comments_popup_link( __( 'Leave your thoughts', 'dis2019' ), __( '1 Comment', 'dis2019' ), __( '% Comments', 'dis2019' )); ?></span>
|
||||
<!-- /post details -->
|
||||
|
||||
<?php diswp_excerpt('diswp_index'); // Build your custom callback length in functions.php ?>
|
||||
|
||||
<br class="clear">
|
||||
|
||||
<?php edit_post_link(); ?>
|
||||
|
||||
</article>
|
||||
<!-- /article -->
|
||||
|
||||
<?php endwhile; ?>
|
||||
|
||||
<?php else: ?>
|
||||
|
||||
<!-- article -->
|
||||
<article>
|
||||
|
||||
<h2><?php _e( 'Sorry, nothing to display.', 'dis2019' ); ?></h2>
|
||||
|
||||
</article>
|
||||
<!-- /article -->
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php get_template_part('pagination'); ?>
|
||||
|
||||
</section>
|
||||
<!-- /section -->
|
||||
|
||||
|
||||
|
||||
|
||||
<?php get_footer(); ?>
|
||||
Reference in New Issue
Block a user