Results Text

Ajax Load More offers a simple method to provide feedback to users about the current page and the total number of pages available in a load more query.

By adding the following HTML snippet to any page that Ajax Load More is active, the end user will be presented with text on screen informing them of their progress through the load more process.

Note: Results Text can only be used when a single instance of Ajax Load More is present and is not yet compatible with the Single Posts or Cache add-on.


Adding the HTML

The HTML snippet can be added to your page anywhere you like. If Ajax Load More is able to locate the element, it will render the results text.

🔥Pro Tip: Use the alm_before_button filter hook to inject the text directly into the Ajax Load More listing.


Filter Hooks

The copy displayed in the results text can be updating by using the following filters.

alm_display_results

The alm_display_results filter will change the feedback text for the user.

Note: The {num} and {total} parameters of this filter are required if you wish display these to the user.

alm_no_results_text

The alm_no_results_text filter will change the feedback text for the user when no posts are present in the query.