DocumentationOnline documentation for Ajax Load More
Author Archives
The code below will display an archive of posts by author ID.
author.php
<?php
get_header();
if(is_author()){
$author_id = get_the_author_meta('ID');
$name = get_the_author_meta('display_name');
echo '<h1>' . $name . '</h1>';
echo do_shortcode( '[ajax_load_more author="' . $author_id . '"]' );
}
get_footer();
?>
PHP