• Resolved RavensGate

    (@ravensgate)


    I have added the following shortcode to index.php:

    <?php echo do_shortcode('[ajax_load_more]');
    ?>
    
    This should load the posts however only loads:
    <section id="ajax-load-more" class=" default"><div class="alm-listing archive" data-repeater="default" data-post-type="post" data-category="" data-taxonomy="" data-tag="" data-author="" data-exclude="" data-offset="0" data-posts-per-page="5" data-search="" data-scroll="true" data-max-pages="5" data-pause="false" data-button-label="Older Posts" data-transition="slide"></div></section>

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been damaged by the forum’s parser.]

    No actual posts are loaded

    https://wordpress.org/plugins/ajax-load-more/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Darren Cooney

    (@dcooney)

    Hi, I’m not sure why that would be happening. It works on index.php in my test environments.

    Is th output on the page? Or is that the HTML you copied?

    Thread Starter RavensGate

    (@ravensgate)

    That the output on the page from chrome

    Plugin Author Darren Cooney

    (@dcooney)

    That’s really weird.
    Can you share a link? Or a screenshot?

    Thread Starter RavensGate

    (@ravensgate)

    Plugin Author Darren Cooney

    (@dcooney)

    Thanks, ok so that is the actual source code. I thought you were talking it was writing the html as content on the screen.

    Seems like there may be a javascript error or something. Are you running firebug or developer tools?

    kosmonaft

    (@kosmonaft)

    How you resolved this issue?
    I have the same problem.
    Could you please help me?

    I check in firebug and there aren’t available any js or css from the plugin.

    Suhkha

    (@suhkha)

    Hi!
    Anybody knows how to solve that?

    I have a custom theme and plugin doesn’t load posts (like the original question), but themes like twentyfifteen or twentyfourteen the plugin works!

    What’s the difference?
    And there’s no error about css or js.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Ajax Load not working. Loads Html no posts’ is closed to new replies.