Support » Fixing WordPress » Masonry Blog not loading properly

  • I have a Fullscreen Masonry Blog and Infinitive Load more Ajax Loading that’s not working.

    My site, http://www.purephotos.co.uk uses the now vanished Elastico theme, the blog page used to work fine, but I think either updating WordPress, or one of a handful of plugins has broken the blog page so that it no longer loads blog posts properly further down the page.

    When you click the ‘Load more’ button at the bottom of the page it seems to load something but the blank space just gets filled with an image from the next post (which wasn’t originally visible) rather than loading the next 10 or so posts.

    Any ideas how I can fix this? I’m quite happy hacking around in the background, but I just don’t know where to start with this one.

    Thanks in advance.

Viewing 1 replies (of 1 total)
  • Thread Starter xanderwhite

    (@xanderwhite)

    Ok, well I’ve managed to find the code that operates the ‘load more’ function:

    <div id="load-more">
                    <a data-total-posts="<?php echo $total_posts ; ?>" data-perpage="<?php echo get_option('posts_per_page');?>">
                         	<span id="load-btn-icon"></span><?php _e('Load More', 'si_theme'); ?>
                            <span id="posts-count" data-loader="<?php echo get_template_directory_uri(); ?>/images/ajax-loader.gif">
                                    <?php echo get_option('posts_per_page').'/'.$total_posts; ?>
                            </span>
                    </a>
            </div>

    Also, played with the number of posts visible in the default WordPress settings and increasing or decreasing the number of posts works fine and all requested posts are displayed properly. The problem only happens when using the ‘Load more’ button at the bottom of the blog page.

    Would really appreciate anybody’s help with fixing this issue.
    Thanks

Viewing 1 replies (of 1 total)
  • The topic ‘Masonry Blog not loading properly’ is closed to new replies.