Home › Forum › Problemi Vari con WP › Tendina nella sidebar
-
AutorePost
-
-
5 Settembre 2008 alle 14:03 #7770cerion86Partecipante
Ciao a tutti, sono nuovo di WP…
una domanda banale, come faccio a fare in modo che cliccando su una categoria nella sidebar mi scenda un menu a tendina con gli articoli?
Grazie mille!!
enrico
-
5 Settembre 2008 alle 15:23 #57357wollyAmministratore del forum
se il tuo tema è widgetready mi sembra che il widget lo faccia.
-
5 Settembre 2008 alle 18:15 #57365cerion86Partecipante
widget ready vuol dire che dal backend posso usare i widget? si sଠallora lo è perchè li sto usando…. però la tendina non ho idea di come si metta… nn c’è un pligin? o devo cambiare template?
-
5 Settembre 2008 alle 18:24 #57366arock84Partecipante
io invece vorre sapere come si ottiene questo effetto modificando il codice senza utilizzare widget.
-
5 Settembre 2008 alle 20:11 #57371ondapiPartecipante
non mi sembra che sia possibile l’opzione di default per gli ultimi articoli, al contrario degli archivi per categoria oe mese
ma è possibile aggirare l’ostacolo con un po’ di html e utilizzando il loop
premessa
ho attivato la funzione menu a tensina dell’archivio mensile
e dopo aver copiato il codice html generato Ctrl+U in firefox l’ho modificato inserendo un loop
il risultato è quello che vuoi tu
funziona sul tema kubrick anche senza alcun plugin attivato
un attimo di codice
<li id="archives" class="widget widget_archive">
<h2 class="widgettitle">Ultini Articoli</h2>
<select name="archive-dropdown" onchange='document.location.href=this.options[this.selectedIndex].value;'>
<option value="">Seleziona articolo</option>
<?php query_posts('showposts=20');?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<option value="<?php the_permalink() ?>"><?php the_title() ?></option>
<?php endwhile; endif; ?>
</select>
-
5 Settembre 2008 alle 20:12 #57372ondapiPartecipante
hoops manca il /li di chiusura`
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.