Use AJAX Load More in author template
-
I’d like to use AJAZ Load More in my author.php template but obviously, the key is it only displays posts for said author. And it won’t know that until it gets to this point, of course. Is there some way I can add something to my shortcode to dynamically determine what author’s posts to displays based on the slug or ID?
Here’s what I’m talking about:
<?php echo do_shortcode( '[ajax_load_more author="PHP ID or slug goes here" post_type="food, film" posts_per_page="10" scroll="false" scroll_distance="100" pause="false" button_label="Read More" ]' ); ?>
- The topic ‘Use AJAX Load More in author template’ is closed to new replies.