automatically repopulate homepage with more posts (10 posts)

  1. theresident
    Posted 4 years ago #


    My website is http://www.theresident.net

    Instead of having a numerical list of more pages to click through at the bottom on the homepage, I'd like the homepage to act like Boing Boing's (http://boingboing.net/), where, when a user arrives at the bottom of the page, more posts just continually populate, so that the user never has to click.

    Is there a simple code to add to my index to achieve this, or are there huge implications for how long it takes for the page to load with something like that? Thanks for the help.

  2. Johnb81
    Posted 4 years ago #

    Hi theresident,

    There are plugins which you can install to achieve such functionality such as http://www.infinite-scroll.com/

    To generate the page numbers like you currently have your theme is using some plugin such as WP-Page Navi (http://wordpress.org/extend/plugins/wp-pagenavi/)

    So in this case you have to disable the other plugin, install the new one and hope it supports it.

    If you never used the new plugin, I would recommend you to try it out first on a test / local installation.

  3. theresident
    Posted 4 years ago #

    Thanks very much, Johnb81!

    Now if I could only remember my gravatar email address to figure out why the heck my profile pic is that weird, heinous thing...:)

  4. Johnb81
    Posted 4 years ago #

    Click on Member under your nickname and click on Edit profile. There you can see the email you are using in this WordPress forum.

    Good luck with that :)

  5. theresident
    Posted 4 years ago #

    Thanks! hahaha

  6. theresident
    Posted 3 years ago #

    Hey there - I finally added in the Infinite Scroll, and I love it, BUT - now my header disappears once you scroll down. How do I fix that, any ideas?


  7. Johnb81
    Posted 3 years ago #

    That's weird! If you need to solve this most probably you have to ask a professional as it is quite difficult to check what is wrong without getting access to the website.

  8. theresident
    Posted 3 years ago #

    I think the issue is with the selectors.

    I am using the following:

    Content Selector: #subpage
    Posts Selector: #subpage div.content

    Navigation Selector div.navigation
    Next Page Selector div.navigation a:first

    The theme I use didn't have a Previous and Next div built in, it used the following script and php:

    if(function_exists('wp_pagenavi')) { wp_pagenavi(); }

    The navigation selector and next page selector for the infinite-scroll don't seem to apply, then - or, I don't have any idea what to put in lieu of having an actual previous-next setup on my site.

    I think I need to have different things set for those two selectors, in other words, but I have no idea what they might be.

    Anyone have any ideas?

  9. Johnb81
    Posted 3 years ago #

    yes that might be an issue since it seems your theme was using pagenavi script instead of the actual divs.

    Maybe you can write your own divs then and try them out?

  10. theresident
    Posted 3 years ago #

    Hm, that's a good idea! Plopping in a div around the script might work.

Topic Closed

This topic has been closed to new replies.

About this Topic