Quantcast
Channel: Suzanne Ahjira» Tutorials
Viewing all articles
Browse latest Browse all 29

How To Append Author Information To The Flint Author Box Bio

$
0
0

Flint includes a hook within the author box that allows you to append more author information after the bio. The hook name is flint_after_authbox_bio and here’s an example of how to use it.

add_action( 'flint_after_authbox_bio', 'my_number_of_posts' );
function my_number_of_posts() {

   $numposts = get_the_author_posts();

  echo "<p>I have written " . $numposts . " posts.</p>";
	
}

And here’s how it would look :)

authbox

Viewing all articles
Browse latest Browse all 29

Trending Articles