
LCP Ajax Pagination is an add-on plugin for List Category Posts.
Many users have requested the AJAX pagination feature and it is now possible with this extension.
Two modes are currently supported:
IMPORTANT: Requires List Category Posts version 0.84.1 or greater.
Usage: [catlist ajax_pagination=yes]
The result is as if you used [catlist pagination=yes] but clicking pagination links does not trigger page reloads.
Instead, new posts are fetched asynchronously and the list is updated without a reload.
No other features of LCP pagination are modified,
you can apply your pagination CSS, or other customisations, same as you have before.
Usage: [catlist ajax_loadmore=yes]
This transforms vanilla LCP pagination by replacing pagination links with a “Load more” link. Note that this
first release does not allow specifying how many posts to fetch and uses the numberposts shortcode parameter
same as vanilla pagination.
This will change in a future release.
You can customise the link’s text using LCP’s pagination_next parameter:
[catlist ajax_loadmore=yes pagination_next=”Show more posts”]
instance parameter setpagination parameter, using ajax_loadmore or ajax_pagination is enough.ajax_loadmore or ajax_pagination, otherwise the plugin will not work.The plugin uses the following CSS classes:
<ul> has the original lcp_paginator class, this plugin also adds lcpax-pagination.<div class="lcpax-nextlink-wrapper">, the link itself is left unchangedlcp_nextlink class.lcpax-spinner class.LCP Ajax is open source software. You can find the
development version of the plugin on Github.
All suggestions and contributions are welcome
Download & install the zip archive
The plugin package installer can be downloaded from the WP2E project tab called “code”.
1 – Select the version to download if this option is available otherwise the “latest” version of the main plugin will be used.
2 – After downloading the zip archive install the plugin package installer in you local environment and activate the script from the plugin list.
3 – Under the section “Plugins” of the admin dashboard you should see a new “Dependencies & Licenses” link. Follow the instructions from this panel to finalize the installation of the missing dependencies.
Tips: Use the WP2E panel to add/suggest new dependencies to the local installation. Press F5 in the list of dependencies if the changes are not displayed right away.