Variables

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

$alm_page Returns the current page number. echo $alm_page;
$alm_current Returns the current item number in the Ajax Load More loop - count will reset to zero with every 'Load More' action. echo $alm_current;
$alm_item Returns the current item number within your entire Ajax Load More query. echo $alm_item;
$alm_found_posts Returns the total number of posts found in the Ajax Load More query. echo $alm_found_posts;
$args The $args array contains query data and other Ajax Load More related information. var_dump( $args );

Repeater Template Usage Examples

Pro Tip: You can pass page level variables to Ajax Load More Repeater Templates using the vars parameter » Learn More.