Quantcast
Viewing latest article 16
Browse Latest Browse All 29

How To Append Author Information To The Flint Author Box Bio

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 :)

Image may be NSFW.
Clik here to view.
authbox

Viewing latest article 16
Browse Latest Browse All 29

Trending Articles