Home › Forum › Problemi Vari con WP › Menu a tendina per le categorie non funziona.
-
AutorePost
-
-
14 Gennaio 2009 alle 14:52 #9103dimarsabaPartecipante
Eccomi di nuovo con un nuovo problemino, ho inserito all’interno della sidebar un istruzione per la visione dell’archivio con un menu a tendina con la seguente istruzione:
<form id=”archiveform” action=””>
<p>
<div class=”p5″>
<select name=”archive_chrono” onchange=”window.location=(document.forms.archiveform.archive_chrono
[document.forms.archiveform.archive_chrono.selectedIndex].value);”>
<option value=”>Scegli un mese</option>
<?php wp_get_archives(‘type=monthly&format=option’); ?>
</select>
</div>
</p>
</form>
il tutto funziona egregiamente pertanto decido di fare la stessa cosa anche per le categorie per ragioni che non sto qui ad elencarvi, inserisco stesso codice modificando ovviamente la visione sulle categorie ovvero:
<form id=”archiveform” action=””>
<p>
<div class=”p6″>
<select name=”archive_chrono” onchange=”window.location=(document.forms.archiveform.archive_chrono
[document.forms.archiveform.archive_chrono.selectedIndex].value);”>
<option value=”>Scegli una categoria</option>
<?php wp_list_categories(‘orderby=name&title_li’); ?>
</select>
</div>
</p>
</form>
ma non funziona ovvero non vedo nessuna categoria (pur essendoci inserite diverse) pertanto nulla è cliccabile, dove sbaglio?
Ciao
p.s.
Altra istruzione? Ah!! Dimenticavo, ho anche utilizzato l’istruzione <?php wp_dropdown_categories(”); ?> come consigliato sul sito spaghettiwordpress ovviamente aggingendo l’istruzione alle catgerie, ma trovo lo stesso problema.
-
14 Gennaio 2009 alle 15:27 #61244SteveAglAmministratore del forum
chi due comando non sono identici uno restituisce un elenco di option l’altro no…
Esempi certamente funzionanti su:
http://codex.wordpress.org/Template_Tags/wp_dropdown_categories
-
14 Gennaio 2009 alle 19:34 #61266dimarsabaPartecipante
chi due comando non sono identici uno restituisce un elenco di option l’altro no…
Esempi certamente funzionanti su:
http://codex.wordpress.org/Template_Tags/wp_dropdown_categories
Proverò a capirci qualche cosa poi vedremo nel frattempo grazie
Ciao
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.