query posts before current post
-
I’m trying to query all posts published before the current post and can’t figure out a way to do so. Since date_query is not available as an ALM parameter I’m looking at the alm_query_args_ filter. The problem is that the date_query has to be according to the get_the_date() value of each post. I’ve tried global $post but that’s still not available in the filter. If there is a way to do this in the shortcode that would work. Thanks.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘query posts before current post’ is closed to new replies.