This topic is: not resolved
- This topic has 0 replies, 1 voice, and was last updated 1 year, 2 months ago by .
Viewing 1 post (of 1 total)
Viewing 1 post (of 1 total)
- You must be logged in to reply to this topic.
These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.
Community Forums › Forums › StudioPress Themes › Breakthrough Pro › Post info is not displayed in author archives
The Post Info is missing on the author pages, even with all plugins disabled and only with the Genesis and Breakthrough theme enabled. Both are up to date. The below code in the functions file of the theme should display the post info, but it only shows 'by' and 'on', while on other pages the post info is displayed correctly.
function breakthrough_modify_post_info( $post_info ) {
global $post;
setup_postdata( $post );
$post_avatar = get_avatar( get_the_author_meta( 'email' ), 36 );
if ( is_single() ) {
$post_info = $post_avatar . '<i class="byline">by</i> [post_author_posts_link] <i>on</i> [post_date after=""] [post_comments] [post_edit]';
} else {
$post_info = '<i class="byline">by</i> [post_author_posts_link] <i>on</i> [post_date] [post_comments] [post_edit]';
}
return $post_info;
}
https://www.devrijdenkers.nl/author/oliver/
© 2024 WPEngine, Inc.