Date Query

Ajax Load More does not integrate directly with the WP_Date_Query class, however we can use the alm_query_args filter to extend the Ajax Load More query to include a custom date query.

The code sample below will query posts between March 1, 2020 and January 1, 2019 using a WP_Date_Query.


« Back to Code Samples