WordPress.org

Ready to get started?Download WordPress

Forums

Masonry Blog not loading properly (2 posts)

  1. xanderwhite
    Member
    Posted 1 year ago #

    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.

  2. xanderwhite
    Member
    Posted 1 year ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic