Home › Forum › Problemi Vari con WP › Escludere pagine dall’elenco
-
AutorePost
-
-
17 Novembre 2007 alle 19:42 #5090imaxPartecipante
Ciao a tutti.
premetto, ho gia letto il wiki, ed è stato molto utile, ma io sono troppo ignorante anche per il wiki.
vorrei escludere delle pagine dalla lista. conosco il comando per escluderle, il fatto è che non so dove inserirlo.
Il template base utilizza il file “sidebar.php”, il mio template (limauorange, scaricato) utilizza “sidebar.php” che poi richiama a “lsidebar.php” e “rsidebar.php”.
dove devo inserire il comando? devo cancellare qualcosa?
grazie mille
-
17 Novembre 2007 alle 23:30 #47992ondapiPartecipante
lsidebar e rsidebar penso stiano per left e right quindi il tuo tema utilizza una doppia barra laterale…
ora vai a guardare dove si trova l’elenco delle pagine, a destra o sinistra, e cerca nel file omonimo quamcosa come questo wp_list_pages() che è il comando per far magicamente apparire le pagine
dentro alle parentesi ci sono le varie variabili che trovi nel wiki
wp_list_pages(‘exclude=5’) mi esclude la pubblicazione della pagina con id=5
potresti tovarlo cosଠwp_list_pages(‘sort_column=menu_order&depth=3&title_li=’)
-
18 Novembre 2007 alle 6:58 #47998ondapiPartecipante
in questo caso devi aggiungere exclude=5 seguito dalla & e il tutto diventa cosà¬
wp_list_pages(‘exclude=5&sort_column=menu_order&depth=3&title_li=’)
-
18 Novembre 2007 alle 10:29 #48000imaxPartecipante
<?php wp_list_pages(‘title_li=<h2>Pages</h2>’ ); ?>
io ho questo
però se al posto di questo scrivo
<?php wp_list_pages(‘exclude=18&title_li=<h2>Pages</h2>’ ); ?>
la pagina 18 resta li, al suo posto.
l’utilizzo dei widgets potrebbe aver modificato qualcosa?
-
18 Novembre 2007 alle 10:31 #48001imaxPartecipante
che pirla, bastava usare i widgets!
risolto
-
25 Marzo 2008 alle 9:22 #51757PiotrPartecipante
Ma … :oO
Come i Widgets ???
Mi spieghi come ??? :o(
-
27 Marzo 2008 alle 21:00 #51847PiotrPartecipante
Super, risolto
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.