• Resolved allencg

    (@allencg)


    Hello

    I have the plugin working fine, however I wondered, because there is a slight delay when loading the intial, say, 5 block of posts. So the page is momentarily blank until it loads. I wonder if it’s possible to load the initial 5 articles though php, so they render immediately, then below those call the remaining posts through the Ajax Load More?

    If this is possible, what;s the php call? I use:

    <?php
                $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
                query_posts('cat=3&posts_per_page=10&paged=' . $paged);
                ?>

    Then would like the Load More to pull articles the initial articles. But carying on. So If I use the abmove then call the shortcode:

    <?php echo do_shortcode('[ajax_load_more repeater="template_3" post_type="post" category="news" posts_per_page="3" scroll_distance="50" max_pages="0" button_label="More News"]'); ?>

    I’d like the articles from the plugin to carry on from post #6, rather than repeat from post #1.

    Is this possible?

    https://www.ads-software.com/plugins/ajax-load-more/

Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Load More but AFTER normal PHP’ is closed to new replies.