Title: No posts are loading after initial posts
Last modified: August 31, 2016

---

# No posts are loading after initial posts

 *  Resolved [databell96](https://wordpress.org/support/users/databell96/)
 * (@databell96)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/no-posts-are-loading-after-initial-posts/)
 * I’ve been using ALM for about a year. Always worked great, but now for the first
   time, I m using one without the Load More button. So just infinite scrolling 
   as you go down past each series of ten posts. Got this for my shortcode:
 * `echo do_shortcode( '[ajax_load_more post_type="food, film, music, art, fashion,
   photography" posts_per_page="10" max_pages="0"]' );`
 * First ten posts load great, but once I scroll downward, I get the loading dots,
   but no more posts. So I’m wondering if I’m doing something incorrect.
 * Problem is this is on a staging site that is password protected, so I can’t share
   a link with you.
 * [https://wordpress.org/plugins/ajax-load-more/](https://wordpress.org/plugins/ajax-load-more/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [Darren Cooney](https://wordpress.org/support/users/dcooney/)
 * (@dcooney)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/no-posts-are-loading-after-initial-posts/#post-7280127)
 * Tough to debug without a link but sounds like a possible JavaScript issue.
 * Do you see any errors in your developer console?
 *  Thread Starter [databell96](https://wordpress.org/support/users/databell96/)
 * (@databell96)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/no-posts-are-loading-after-initial-posts/#post-7280130)
 * I don;’t think so. I just loaded the page with console running. I saw at GET 
   request for the first ten posts, but nothing after that.
 * I could provide you with a login but not here, of course. Any chance I can PM,
   dcooney somehow?
 *  Thread Starter [databell96](https://wordpress.org/support/users/databell96/)
 * (@databell96)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/no-posts-are-loading-after-initial-posts/#post-7280131)
 * Also, currently, my footer is set at position:fixed;. Could that be an issue?
 *  Thread Starter [databell96](https://wordpress.org/support/users/databell96/)
 * (@databell96)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/no-posts-are-loading-after-initial-posts/#post-7280138)
 * UPDATE: So I got it where the infinite scrolling works….but only when there’s
   a button to click on. Which is not what I want. So at the very least we know 
   the functionality is there, but I need to make it work beyond button clicks. 
   Here’s the new shortcode (which does work):
 * `[ajax_load_more post_type="post, food, film, music, art, fashion, photography"
   posts_per_page="10" scroll_distance="100" pause="false" button_label="Read More"]`
 *  Thread Starter [databell96](https://wordpress.org/support/users/databell96/)
 * (@databell96)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/no-posts-are-loading-after-initial-posts/#post-7280140)
 * OK, I solved it, but now I have to figure out another solution for something 
   else.
 * It’s the footer.
 * Because of the infinite scrolling, the client wants the footer to be fixed. To‘
   float’ on the page, as they explain it.
 * So I did this style to my footer:
 * `.site-footer { background: #000; position: fixed; width: 100%; bottom: 0; left:
   0; font-size: 15px; z-index: 2000; }`
 * If I delete the position:fixed; the infinite scrolling works. If I keep it, it
   doesn’t.
 * So I solved one problem but created another. How can I keep the footer on screen
   and still have my scrolling?
 *  Thread Starter [databell96](https://wordpress.org/support/users/databell96/)
 * (@databell96)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/no-posts-are-loading-after-initial-posts/#post-7280238)
 * Found the solution! The problem was that when I had the sticky footer, the #page
   div no longer was hitting the bottom of the screen. So I did the following in
   my CSS and it worked. Now I have my infinite scrolling back!
 * `#page { margin-bottom: 45px; }`

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘No posts are loading after initial posts’ is closed to new replies.

 * ![](https://ps.w.org/ajax-load-more/assets/icon-256x256.png?rev=2944639)
 * [Ajax Load More – Infinite Scroll, Load More, & Lazy Load](https://wordpress.org/plugins/ajax-load-more/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ajax-load-more/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ajax-load-more/)
 * [Active Topics](https://wordpress.org/support/plugin/ajax-load-more/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ajax-load-more/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ajax-load-more/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [databell96](https://wordpress.org/support/users/databell96/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/no-posts-are-loading-after-initial-posts/#post-7280238)
 * Status: resolved