Can’t Load More Posts when Author ID is put into Shortcode
-
Greetings,
I am attempting to fix a bug that does not allow most posts to load whenever the author ID is put into the shortcode. If I remove it, I can load all posts so I’, thinking it has something to do with this part. I’ve read the documentation and even attempted to do a replicate through the plugin with no better result. Any help is appreciated.
Things I’ve ruled out:
-the author does have more posts to load
-the button will load more posts if no author ID is placed in
-plugin interference$author = get_the_author_meta(‘ID’);
$ajax_load_more_attr .= ‘ author=”‘ . $author . ‘”‘;
echo do_shortcode( ‘[ajax_load_more id=”authpost” theme_repeater=”authpost.php” posts_per_page=”6″ post_type=”post” scroll=”false” pause=”true” button_label=”LOAD MORE”‘ . $ajax_load_more_attr . ‘]’ );The page I need help with: [log in to see the link]
- The topic ‘Can’t Load More Posts when Author ID is put into Shortcode’ is closed to new replies.