Last active
September 21, 2022 07:33
-
-
Save axxe16/198826d72dea3ea5e52de8cf5c8ccd74 to your computer and use it in GitHub Desktop.
wp query per post pubblicati oggi #wp #wpquery
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//query che recupera tutti i ctp di titpo evento pubblicati oggi | |
$today = getdate(); | |
$args = array( | |
'date_query' => array( | |
array( | |
'year' => $today['year'], | |
'month' => $today['mon'], | |
'day' => $today['mday'], | |
), | |
), | |
'post_type' => 'event', | |
'posts_per_page' => -1, | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment