WordPress at a glance

the_author_posts() WP 1.0

Display the number of posts by the author of the current post.

Works based on: get_the_author_posts()
1 time — 0.004421 sec (very slow) | 50000 times — 168.14 sec (extremely slow) | PHP 7.1.2, WP 4.7.3

No Hooks.

Return

null. Nothing.

Usage

the_author_posts();

Changelog

Since 0.71 Introduced.

Code of the_author_posts() WP 5.7.2

<?php
function the_author_posts() {
	echo get_the_author_posts();
}

From category: Other

More from Template Tags: Authors

No comments
    Log In