rikart
  • Member for 7 months
  • Last seen more than a month ago
Only display posts after current date
Accepted answer
3 votes

Turns out meta_query was the way to go. This is the code I used to make it work. add_action( 'pre_get_posts', 'filter_posts' ); function filter_posts( $query ) { $now = date("Y-m-d H:i", ...

View answer