Visualizzazione 4 filoni di risposte
Visualizzazione 4 filoni di risposte
- Devi essere connesso per rispondere a questo topic.
Email: info@wpitaly.it
Home › Forum › Problemi Vari con WP › Visualizzare post di una determinata categoria in un box della home
Salve ragazzi,
ho l’esigenza di dover far visualizzare tipo gli ultimi 5 post di una determinata categoria in un DIV nella home page…
Esempio:
Come potrei fare?
Vi ringrazio tutti anticipatamente.
Anna.
visualizzare posto di una categoria in sidebar o in pagina è stato chiesto spesso e le soluzioni date anche.. usare le funzioni di ricerca
Ciao Steve! Grazie per la risposta!
Ho provato a cercare sul forum ma non ho trovato nulla
In particolare cerco il modo in cui visualizzare solo gli ultimi post di quella categoria, e non nella sidebar ma nella proprio, cioe’ proprio nella pagina che fa da home!
Avete qualche consiglio/soluzione a riguardo?
Mille grazie ancora!
Anna.
Ciao Steve grazie per i link, sto cercando di studiarli un po’…
Ma nel php dove si richiama “post”
Esempio
<?php while (have_posts()) : the_post(); ?>
Vuol dire anche le pagine?
Altro esempio, in questo caso
<?php query_posts('order=DESC&posts_per_page=3&cat=1'); ?>
Richiama le ultime 3 pagine della categoria 1?
Grazie mille!
Anna
WPItaly - Copyright Creative Commons: CC BY-NC-SA 4.0