Email: info@wpitaly.it
Ho copiato pari-pari quest’altro codice (per il quale ti ringrazio), eppure mi continua a visualizzare gli ultimi 4 post (incluso l’ultimo), dal più vecchio al più nuovo.
Con l’altro codice ho risolto, ma imparare nuove cose non fa mai male
Ti ringrazio. Ho risolto cosà¬, perché con il tuo codice non riuscivo a fare l’ordinamento corretto (decrescente, anziché crescente):
<?php
// I love WordPress so
query_posts('showposts=1&offset=0');
?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php endwhile; endif; ?>
<?php
// I love WordPress so
query_posts('showposts=1&offset=1');
?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php endwhile; endif; ?>
Grazie.
Questo lo tengo da parte. Se volessi selezionarli indipendentemente dalla categoria (ultimi 4 post -1) di tutte le categorie?
WPItaly - Copyright Creative Commons: CC BY-NC-SA 4.0