Hey @brianbrey
Got this error message today on my site. I’m using PHP 8.0.28, so it seems some things have changed:
Deprecated: Required parameter $post follows optional parameter $field in /wp-content/plugins/easy-load-more/includes/lib/class-easy-load-more-admin-api.php on line 281
I was able to get the error message to go away by…
Changing this code (line 281):
public function display_meta_box_field ( $field = array(), $post ) {
To this:
public function display_meta_box_field ( $post, $field = array() ) {
Let me know if this helps, or if there’s a better way to do this!
]]>Hi @brianbrey
My title basically says it, but when I click the “Load More” button, the next set of posts covers the top of the initially loaded posts. I’m using DeSandro’s Masonry. Any idea why this might be? Thank you!
]]>@brianbrey – Haha! Just noticed I asked this question over 2 years ago. I’m thankful that this plugin still works! It’s truly easy to use, and just works (I’m currently using this plugin with WP 6.0.1).
@brianbrey, are you still maintaining this plugin?
Thank you!
]]>@brianbrey Are you still maintaining this plugin? I’m using it now with WP 5.4, and it works fine. Just curious. Thanks!
]]>Hi, thanks for your plugin.
Why the category of my site (first screenshot) becomes so after clicking on the “Load More” button (second screenshot). This happens every time I click on it.
First screenshot
Second screenshot
My theme is responsive. The theme is this: https://times.clyco.co/demo/
I’m waiting for your answer
Thanks.
Marco
Hi, I’m running this plugin on a bilingual site, using WPML to manage the translations. I was wondering if there’s a way to translate the button text as it doesn’t appear to be localized. Thank you!
]]>Hi, Installed the plugin today on a site I am developing currently and when I click the button, nothing happens. I’ve tried disabling a number of plugins, checking console for errors, added the correct #ajax ID to the theme and in the settings. Any help would be appreciated.
https://marsvinyl.com/vinyl/
I have an Isotope / Masonry layout for my clients blog and my problem is when I click the Load More button, the new set of posts load, but they aren’t in Masonry / Isotope format but rather one long column that crashes into the Load More button and the footer.
Is there a way to correct this? Or do you recommend a Masonry approach that would work more effectively with your plugin?
]]>I saw that @hemant29 issue was closed and not resolved. The issue is not with the plugin but the custom query in your theme. Be sure that your query has the pagination setup correctly.
$paged = max(1, get_query_var(‘paged’));
$my_query = new WP_Query(‘category_name=something&posts_per_page=1&paged=’.$paged);
More info here https://stackoverflow.com/questions/15937436/wordpress-pagination-showing-same-results-for-each-page?rq=1
]]>When I push load more button in category.php it starts loading new page instead using AJAX. It adds ?paged=2 after URL and page is crashing.
Other pages working well.
code:
<div class="news">
<div class="fix">
<div class="news__content news__content--catalog">
<ul class="preview-medium__list" id="ajax">
<?php
$args = array(
'post_type' => 'post' ,
'orderby' => 'date' ,
'order' => 'DESC' ,
'posts_per_page' => 1,
'cat' => '22',
'paged' => get_query_var('paged'),
'post__not_in' => $ids,
'post_parent' => $parent
);
$q = new WP_Query($args);
if($q->have_posts() ) : while($q->have_posts()) : $q->the_post(); ?>
<li class="preview-medium__item"><a class="preview-medium__link" href="<?php the_permalink(); ?>">
<h3 class="preview-medium__category"><?php echo get_the_category()[0]->cat_name; ?></h3><span class="preview-medium__text"><?php the_title(); ?></span><span class="preview-medium__info"><span class="preview-medium__date"><?php the_time('j M Y'); ?></span><span class="preview-medium__views"><?php echo getPostViews(get_the_ID()); ?>
<svg class="preview-medium__icon">
<use xlink:href="#eye"></use>
</svg></span></span><span class="preview-medium__img"><?php if (class_exists('MultiPostThumbnails')) : MultiPostThumbnails::the_post_thumbnail(get_post_type(), 'sticker-img', null, 'thumbnail', array('class' => 'preview-medium__sticker'));endif; ?></span></a></li>
<?php endwhile; ?>
<?php endif; ?>
</ul>
<div class="btn__box btn__box--icon btn__box--margin-top">
<div class="btn__data">
<?php load_more_button(); ?>
<!-- <button class="btn btn--load-more" type="button"><span class="btn__text">Завантажити ще</span></button>-->
</div>
</div>
</div>
</div>
</div>
]]>
When you click on green button at the bottom of this page – whole page jumps. Please help me fix this.
]]>Mac Safari Browser & iPhone 6 safari browser Load More ajax not working. When click on Load more button. it will hide the load more button or display the same duplicate content or reload the page.
]]>Hi, I use your plugin and I have a problem. When user clicks “Load more” button then content loads and page jumping upper. I don’t want the page jumping. Can you help me?
]]>My site is using two themes, desktop (where it works great) and mobile. I can’t use this plugin for my mobile theme, as it has different “Post List Wrap Selector” id than desktop version, where I already use the plugin. Trying to add two ids in the “Post List Wrap Selector” field didn’t work.
So, the question is: Can I install it again as “different” plugin, so that to have two instances of it? If yes, how?
Thanks.
]]>Please help in hiding the button when max posts reached or when all posts are displayed.
]]>First of all thanks for a great plugin, i’ve seen it working flawlessly on other sites, so im pretty sure my problem is due to my specific theme.
In short, all functions work on my site, however after pressing the load more button, the loaded content appears under the load more button, instead of above it, which means it simply renders page 2 underneath, with page numbers and everything again, however the load more button does not appear again.
My Themes Loop Code:
<?php // Start the Loop.
while ( have_posts() ) : the_post();
get_template_part('content');
endwhile;
if ($modality_theme_options['simple_paginaton'] == '1') {
// Displays links for next and previous pages. ?>
<div class="clear"></div>
<div class="simple-pagination">
<?php posts_nav_link(); ?>
</div> <?php
} else {
// Previous/next post navigation. ?>
<div class="clear"></div><?php
modality_paging_nav();
} ?>
I suspect the pagination to be my problem, and i’ve tried several ways to add it before the pagination without success, either it breaks the site, or the load more button dissapears completely.
It only shows up, when i add it right before or anywhere after the “<?php
modality_paging_nav();
} ?>`”
Please help me get it working properly ??
]]>The plugin work fine but the button does not disappear when it should. I read that when the data-page is equal at the data-max-pages, the button is support to delete itself. Well in my case its stay there. I use it in my archive.php.
]]>I have to loop through my posts on two pages, one of which in the Main page. On the other page it is working well, but on the main page it always loads the same posts that are present on page load. I even made the code on the main page the same as on the page, where it woks, but still no result.
Please, help.
I’m getting a js error in IE 10 (and other versions): “Object doesn’t support this action” in frontend.min.js. Can anyone verify that this works in IE? Any thoughts?
]]>Hello
Thanks for building such a nice plugin.
I am facing one problem with it.I created a template and load a category post on this page and added your plugin but its not working properly its showing the duplicate post every time.
Can you please help me in that.
Thanks
Here is the complete code:
<?php
/* Template Name: Blog */
get_header();
?>
<div class=”container”>
<?php
$paged = ( get_query_var(‘page’) ) ? get_query_var(‘page’) : 1;
$query_args = array(
‘post_type’ => ‘post’,
‘posts_per_page’ => 8,
//’paged’ => $paged,
//’page’ => $paged,
‘category_name’ => ‘blog’
);
$frontpage_query = new WP_Query( $query_args );
?>
<?php if ( $frontpage_query->have_posts() ) : ?>
<div id=”ajax” class=”blog-li”>
<?php $post_count = 1; ?>
<?php while ( $frontpage_query->have_posts() ) : $frontpage_query->the_post(); ?>
<li<?php if (! has_post_thumbnail() ) { echo ‘ class=”no-img”‘; } ?>>
<?php
if ( has_post_thumbnail() ) {
the_post_thumbnail(array(255,208));
}
?>
<?php $category = get_the_category();
$firstCategory = $category[0]->cat_name;
?>
<?php $title = substr( get_the_title(), 0, 20 ) . ‘…’; ?>
<?php $content = substr( get_the_content(), 0, 130 ) . ‘…’; ?>
<h2 class=”post-title”>“><?php echo $title ?></h2>
<p><?php echo strip_tags($content); ?></p>
“>Read More
<?php $post_count++; endwhile; endif; ?>
</div>
<?php wp_reset_postdata(); ?>
<?php load_more_button();?>
</div>
<?php
get_footer();
?>
Hi! Thx for your work.
I need events after downloading the content. For example: I use lazyload for images, how do I update the images after doing ajax downloads?
]]>I’m using the plugin on a page that runs a loop with custom post types.
data-max-pages is always set to 0, so when I click the load more button it keeps loading posts that are already on the page.
Here’s what my code looks like (without the html markup):
<?php
$work_args = array(
'post_type' => 'work',
'posts_per_page' => 8
);
$work_query = new WP_Query($work_args);
?>
<?php if ($work_query->have_posts()): ?>
<?php while ($work_query->have_posts()): $work_query->the_post(); ?>
<!-- what I want to show for each post -->
<?php endwhile; ?>
<?php load_more_button(); ?>
<?php endif; ?>
<?php wp_reset_query(); ?>
What am I doing wrong?
Thanks.
When someone reaches the end of the posts, it would be great to communicate that to the user. Currently, when one reaches the end, the “Load More” button appears, you click on it, the loading indicator spins, nothing loads, and then you see the same “Load More” button again. It appears that more could be loaded, but nothing loads. The user asks themselves, “Is this the end? Or, is there a malfunction with the loading / site / my internet connection?”
It would be great to see at the end of the list of loaded posts a notification that states, “No More Posts to Load” or “You’ve Reached the End”.
Thank you for your consideration!
]]>I managed to install your plugin and so far everything works fine, except in the Safari Browser. The whole posts block is loaded twice here. Any idea how to fix that issue?
Please have a look here at the bottom of the homepage where the magazine articles are shown:
https://www.trophyrunners.de
Looking forward your reply!
Kind regards,
Gunar
Plugin works great on mobile but on full screen it separates my post grid making everything uneven.
]]>How can I hide the load more button when there are no more posts to show?
]]>I can’t figure out how to add this plugin to my front-page.php. Can you help?
Here is my front-page.php file
https://www.dropbox.com/s/zg3ud9ej2y5ybz4/front-page.php?dl=0
Hi,
When I click the load more button, nothing happens and I get this error on the console:
Uncaught ReferenceError: elm_button_vars is not defined frontend.min.js?ver=1.0.0:1
Here’s my code:
<div id="posts-load-more">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<article>
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
</article>
<?php endwhile; endif; ?>
</div>
<div><?php load_more_button(); ?></div>
Any help?
Thanks!
Hello,
When I installed this I got a PHP error message stating that the constant SCRIPT_DEBUG is already defined – is it possible to get this renamed so it doesn’t conflict with other plugins?
As a temporary fix I’ve had to edit the plugin directly by replacing all instances of SCRIPT_DEBUG with EASY_LOAD_SCRIPT_DEBUG.
]]>Hi, I want to reduce the loading time of my gallery so I was wondering if I could use this plugin in the gallery instead of in the posts area. I want to be able to show only few of the images in the gallery and then click “load more” to see all the rest of the images.
If it’s possible please tell me how can it be done.
Very appreciated.
Thanks, Hofit.