risolto così:
Codice PHP:
$catId = get_queried_object_id();
$args = array(
'post_type' => 'post',
'post_status' => 'publish',
'category' => $catId
);
$posts = get_posts($args);
![]()
risolto così:
Codice PHP:
$catId = get_queried_object_id();
$args = array(
'post_type' => 'post',
'post_status' => 'publish',
'category' => $catId
);
$posts = get_posts($args);
![]()