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:
- Ajax pagination
- Load more posts
IMPORTANT: Requires List Category Posts version 0.84.1 or greater.
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.
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
[catlist ajax_loadmore=yes pagination_next=“Show more posts“]
- IMPORTANT: If you have multiple shortcodes on a page, those using AJAX must have the
as per the documentation.
[catlist ajax_loadmore=yes instance=1]
- You do not have to use LCP’s
- Make sure your shortcode contains only one option:
ajax_pagination, otherwise the plugin will not work.
The plugin uses the following CSS classes:
- AJAX pagination
<ul>has the original
lcp_paginatorclass, this plugin also adds
- Wrapper around the load more link is:
<div class="lcpax-nextlink-wrapper">, the link itself is left unchanged
as delivered by LCP, so it has the
- The SVG spinner displayed while waiting for ‘load more’ to finish has the
LCP Ajax is open source software. You can find the
development version of the plugin on Github.
All suggestions and contributions are welcome 🙂 Fork it, read the respository’s
readme and start helping with the development!
Support the plugin
Please use the support forum for questions about using the plugin. Use Github issues for discussing code changes and bugs.
Please note that this is an add-on plugin which requires List Category Posts to be installed and activated.
Þátttakendur & höfundar
“LCP Ajax Pagination” er opinn hugbúnaður. Eftirfarandi aðilar hafa lagt sitt af mörkum við smíði þessarar viðbótar.Höfundar
Interested in development?
- Updated dependencies.
- Updated dependencies.
- Fixed load more link remaining active before previous fetch is finished.
- Initial release