Very Strange “Load More” button behaviour on mobile
-
This great plugin exhibits bizarre behaviour on mobile. The “Load More Posts” button fails to display in category, archives and author pages but it shows on search results. I get this strange behaviour in Chrome, Opera and Samsung browsers on Android 4.3 kernel 3.0.31. On desktop or laptop, everything loads correctly on all pages.
I tried clearing and disabling cache but nothing changes on mobile. But when I reduce the viewport on my laptop in Firefox and Chrome to get to mobile size, everything works properly. The code I use on the category page is:
<?php if($wp_query->post_count >= 20) { echo do_shortcode('[ajax_load_more container_type="ul" css_classes="archive-list" post_type="post" sticky_posts="true" posts_per_page="20" category="' . $category_slug . '" offset="20" pause="true" scroll="false" button_label="Load More Posts" transition="fade" transition_speed="300" seo="true"]'); } ?>
On search it is almost the same:
<?php if($wp_query->post_count >= 20) { echo do_shortcode('[ajax_load_more container_type="ul" css_classes="archive-list" sticky_posts="true" posts_per_page="20" search="' . $_GET['s'] . '" orderby="relevance" offset="20" pause="true" scroll="false" button_label="Load More Posts" transition="fade" transition_speed="300" seo="true"]'); } ?>
The code is similar for the other pages (archives and author). The website where all this is happening is:
- The topic ‘Very Strange “Load More” button behaviour on mobile’ is closed to new replies.