Hi!
Thanks so much for the code. However, it’s giving me a syntax error as if something is missing. This is the code that I have currently in my functions.php file that gives the time and date. How can I update it the include the author pic and twitter code you have listed above?
// Entry Meta - Adding Author Name next to the Date.
// =============================================================================
if ( ! function_exists( ‘x_icon_entry_meta’ ) ) :
function x_icon_entry_meta() {
$author = sprintf( '<span><i class="x-icon-pencil"></i> %s</span>',
get_the_author()
);
$date = sprintf( '<span><time class="entry-date" datetime="%1$s">%2$s</time></span>',
esc_attr( get_the_date( 'c' ) ),
esc_html( get_the_date( 'm.d.Y' ) )
);
if ( x_does_not_need_entry_meta() ) {
return;
} else {
printf( '<p class="p-meta">%1$s%2$s</p>',
$date,
$author
);
}
}
endif;
// Adding “Read More” link to the Excerpts
// =============================================================================
function excerpt_read_more_link($output) {
global $post;
return $output . ’ Read More’;
}
add_filter(‘the_excerpt’, ‘excerpt_read_more_link’);
Can this code somehow be used to pull the author pic?
<?php echo get_avatar( get_the_author_meta('ID'), 60); ?>
Post Written By:
Fantasy
And can this code be used to pull the time of the post and comment link?
<div class="post-date date updated"><?php echo get_the_date('F j, Y'); ?>|<?php the_time('g:i a'); ?></div><!-- post-date -->
<div class="post-comment"> | <a href="<?php comments_link(); ?>"><?php comments_number(); ?></a></div>
<div class="clear"></div>