Devo montare manualmente i post del blog, ma non sono sicuro che questo sia il modo corretto di funzionare, porta solo 9 pagine, con 4 post ciascuna, ma il blog ha 83 post!get_posts non restituisce tutti i post
<?php
$paged = get_query_var('paged');
$args = array(
'numberposts' => 4,
'offset' => $paged*4,
'orderby' => 'post_date',
'order' => 'DESC',
'post_type' => 'post',
'post_status' => 'publish',
'suppress_filters' => true
);
$posts_array = get_posts($args);
?>
Grazie comunque.
Controlla che tutti i tuoi 83 post siano "pubblicati". – Libin
sì, sono tutti pubblicati, ma ho notato che porta solo post con "nessuna categoria", come posso ottenere tutti i post comprese le altre categorie? –