Variables

The following PHP variables are accessible within Ajax Load More Repeater Templates.

$alm_pageReturns the current page number. echo $alm_page;
$alm_currentReturns the current item number in the Ajax Load More loop - count will reset to zero with every 'Load More' action. echo $alm_current;
$alm_itemReturns the current item number within your entire Ajax Load More query. echo $alm_item;
$alm_found_postsReturns the total number of posts found in the Ajax Load More query. echo $alm_found_posts;

Usage Example

Pro Tip: You can access page level variables in repeater templates using Sessions.