DocumentationOnline documentation for Ajax Load More
Author Archives
The code below will display an archive of posts by author ID.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
<?php //author.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(); ?> |