Display posts related at current date
-
Hello everyone,
I need display posts related at current date, for example:Today: September, 15
-Random post published in September, 15.I try this:
$d = getdate(); $q = new WP_Query( 'post_type=historia&posts_per_page=1&monthnum='.$d["mon"].'&day'. $d["mday"] );
But don’t worked. Anyone can help me?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Display posts related at current date’ is closed to new replies.