beans_post_meta_author_shortcode

Echo post meta author shortcode.

beans_post_meta_author_shortcode( )

Return: (void)

Source

function beans_post_meta_author_shortcode() {

	beans_output_e( 'beans_post_meta_author_prefix', __( 'By ', 'tm-beans' ) );

	beans_open_markup_e( 'beans_post_meta_author', 'a', array(
		'href'     => get_author_posts_url( get_the_author_meta( 'ID' ) ), // Automatically escaped.
		'rel'      => 'author',
		'itemprop' => 'author',
		'itemscope' => '',
		'itemtype' => 'http://schema.org/Person',
	) );

		beans_output_e( 'beans_post_meta_author_text', get_the_author() );

		beans_selfclose_markup_e( 'beans_post_meta_author_name_meta', 'meta', array(
			'itemprop' => 'name',
			'content'  => get_the_author(), // Automatically escaped.
		) );

	beans_close_markup_e( 'beans_post_meta_author', 'a' );

}