Creo una página de filtro de publicaciones de WordPress. Quiero filtrar las publicaciones por fecha, mes y año. ¿Cómo puedo hacer eso?
muestra..
's' => (!empty($_REQUEST["search"])?$_REQUEST["search"]:''),
'post_type' => 'post',
'post_status' =>'publish',
'cat' => 5,
'posts_per_page' => 9,
'paged' => 1,
(!empty($_GET["monthnum"])?'monthnum' =>$_GET["monthnum"]:false),
(!empty($_GET["year"]))?'year' => $_GET["year"]:false),
'orderby' =>!empty($_GET["orderby"])?$_GET["orderby"]:'date'
);```
.