Home>Support>show author on post in Influence

show author on post in Influence

By Josh, 9 years ago.

There does not seem to be any way to show the author in Influence? It appears to be possible based on the template-tags.php, but I do not see how to set it up in theme settings.

if ( ! function_exists( 'influence_posted_on' ) ) :
/**
 * Prints HTML with meta information for the current post-date/time and author.
 *
 * @since influence 1.0
 */
function influence_posted_on() {
	printf( __( 'Posted on <a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s">%4$s</time></a>', 'influence' ),
		esc_url( get_permalink() ),
		esc_attr( get_the_time() ),
		esc_attr( get_the_date( 'c' ) ),
		esc_html( get_the_date() ),
		esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
		esc_attr( sprintf( __( 'View all posts by %s', 'influence' ), get_the_author() ) ),
		get_the_author()
	);
}
endif;

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More