AJAX load more Co-Authors Plus
-
Hi!
I would like to integrate an author page with Ajax Load more. I use Co-authors Plus to have more than one author for posts. I have already successfully implemented the author post list, but the post list shows the multiauthored post for only the first author: clicking on the first authors name, it is listed properly, but on the second authors, it is not.
How should I do that? My current code is:
<?php $author = get_the_author_meta('ID'); echo do_shortcode('[ajax_load_more post_type="post" author="'.$author.'" posts_per_page="10" scroll_distance="250" max_pages="0" transition="fade" button_label="Bet?ltés..."]'); ?>
I tried to change
$author = get_the_author_meta('ID');
to$author = get_the_author_meta('user_name');
, according to this, but did not work.Sample post (might be a little slow):https://elteonline.elte.hu/kozelet/2015/05/30/elfogadta-az-ehok-kuldottgyules-a-valasztasi-kodexet-es-az-etikai-chartat/
The authors:
https://elteonline.elte.hu/author/zricsi010/
https://elteonline.elte.hu/author/voriphoto/Please, help me! ??
Thanks!
- The topic ‘AJAX load more Co-Authors Plus’ is closed to new replies.