Filters /

Implementation Methods

Ajax Load More Filters can be implemented on the frontend via shortcode or the alm_filters PHP function.

Shortcode

The shortcode render method can be used to insert a shortcode in the code editor or a theme template.

alm_filters (PHP Function)

The alm_filters() method must be implemented via page template (php) or backend functions file.

When passing an array of data to the alm_filters() function, it’s very important that you do NOT delete the filter from the WordPress backend as it is still required for various frontend functionality.

The alm_filters() method can also accept a reference to a Filter ID in place of the data array.

Note: Don’t forget to replace YOUR_ALM_ID in the samples above with your Ajax Load More ID.


« Back to Filters