Same-page pagination button for WordPress
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
assets
load-more
README.md

README.md

"Load More Stuff" Pagination

Author: Joni Halabi (www.thatdevgirl.com) License: GPLv2 or later (http://www.gnu.org/licenses/gpl-2.0.html)

Add a "load more" button to your archive and search results pages to dynamically load additional posts without pagination or page loads (i.e. via AJAX). Clicking on the button will add additional posts from a query to the bottom of the page in intervals set by the maximum number of posts option in the WordPress admin.

The number of posts to be updated will be automatically adjusted based on the number of remaining posts to be added and the button will automatically hide when there are no more posts to load.

Usage

This directory should be placed in the plugins directory in your WordPress installation. Place the following code wherever you would like the "Load More" button to be displayed:

<?php load_more_posts(); ?>

If this plugin is being used on a search results page, the button will query for results other than posts (i.e. other content types, pages, etc). On a search results page, place the following code wherever you would like the "Load More" button to be displayed.

<?php load_more_search(); ?>