Risposte nei forum create
-
AutorePost
-
29 Aprile 2009 alle 12:42 in risposta a: Devo far visualizzare un articolo ben preciso, come faccio? #64948cicciocardulloPartecipante
comincia a spiegare precisamente quello che vuoi fare,fai finta che noi non si sia nella tua testa e quindi devi farci capire quello che vuoi fare, perchè dire terz’ultimo non vuole dire nulla.
Ciao.. inizio a spiegare.. cosଠmagari mi viene la soluzione
Sto modificando una parte del mio blog, esattamente l’elenco che riguarda gli articoli recenti.
Ho la semplice necessità di inserire gli ultimi 5 articoli inseriti, ma oltre a questo elenco devo anche inserire una spede di nuvoletta dove andando sopra il link compare e sono inserire alcune informazioni dell’articolo (come categoria, numero commenti ecc..)
Ma, siccome se inserisco il codice: <?php wp_get_archives(‘type=postbypost&limit=5’); ?> non mi ripete per tutti i link le nuvelette, ma solo una volta, quindi ho la necessità di scrivere 5 volte lo script che riguarda l’inserimento del titolo dell’articolo e la nuvoletta.
Inserendola 5 volte, devo necessariamente impostare che la prima volta, mi deve leggere l’ultimo articolo inserito, con il secondo script, voglio che mi inserisca il penultimo articolo… con il terzo script voglio che mi inserisca il terzultimo e cosଠvia..
Ma, non riesco a fare un codice del genere, sono riuscito a leggere per ID ma a me non serve, voglio che mi legga gli ultimi 5, ma devo impostare io quale dei 5!
Se ancora non hai capito ti invio il link del blog, grazie ancora, ciao!
29 Aprile 2009 alle 11:50 in risposta a: Devo far visualizzare un articolo ben preciso, come faccio? #64946cicciocardulloPartecipantepuoi utilizzare query_posts http://codex.wordpress.org/Template_Tags/query_posts
Wolly, grazie per la risposta, ho provato per più di 2 ore.. ma proprio non ci riesco… mi daresti una mano?
Grazieee!! ciao!
-
AutorePost