Visualizzazione 3 filoni di risposte
Visualizzazione 3 filoni di risposte
- Devi essere connesso per rispondere a questo topic.
Email: info@wpitaly.it
Home › Forum › Plugin e temi di WP › archivio automatico post “eventi”
Ho installato il plugin The Future is Now! e cosଠposso pubblicare i post con la dta che voglio,
ora vorrei però fare in mondo che quando il post evento sorpassa la data attuale, scompaia dalla home e si vada a mettere in un simpatico archivio
Esempio, il 10 aprile posto un evento datato il 25 aprile, quando sarà il 26 aprile vorrei che questo post scomparisse dalla home per andare in un archivo per categorie.
Grazie a tutti
Occorre modificare il Loop (vedi wiki) in maniera che la query mostri solo gli articoli con data uguale o superiore a quella corrente… dipende anche come è fatto il tuo index.php… su come fare la query qui trovi molti esempi che puoi facilmente adattare:
http://codex.wordpress.org/Function_Reference/query_posts#Time_Parameters
La query va usata prima del loop all’interno dei template del tuo tema leggere la dissezione di un tema WP sul nostro wiki è un buon inizio per capire dove metttere le mani e chiarirsi il iunzionamento di WP
WPItaly - Copyright Creative Commons: CC BY-NC-SA 4.0