Tag Info

New answers tagged


I don't think there is a parameter value Today as you used in date_query. If you want to return today's post then you should provide date value to date_query as you stored current date in $today array. So here is your query now. $today = getdate(); $args = array( 'tag_slug__in' => array( 'destacado'), 'posts_per_page' => ...


Try replacing getdate() with current_time('Y-m-d')


To add to Bainternet (I am adding this as an answer because I cannot comment -- I have less than 50 points on WP Development stack). WordPress will only store a timezone string if you select a timezone string in the general settings. UTF selection is where it defaults in the list, but you can scroll way up to timezone strings. If you set a timezone ...

Top 50 recent answers are included