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 › Problema con una funzione del tema
Salve, dovrei fare in modo che una pagina non compaia nel menu, quindi andando ad analizzare il codice dell’header ho notato che il tema utilizza la funzione list_all_pages(); …
Adesso mi chiedevo, come faccio ad escludere una pagina per id dalla lista che appare nel menu??
sfortunatamente il tema non utilizza la funzione wp_list_pages altrimenti l’avrei potuta escludere senza tanti complimenti…
EDIT: sono riuscito ad escludere la pagina in questione escludendola nelle clausole del select al database.
Grazie lo stesso.
list_all_pages() NON è una funzione di WP ma scommetto che è una funcione del tema in function.php che richiama una funzione di WP (altirmenti è scritto coi piedi) ergo li userà wp_list_pages e modificando potrai escludere la categoria..s pero tu non abbia modificatole query del core di WP…
anche nel mio tema c’e’ questa funzione lis all pages. Ma in function.php non c’e’ nesun wp-list-pages. Cosଠnon riesco ad escludere una pagina dal menù.Potete darmi una mano
non è una funzione di wordpress, cercal nel tuo tema e vedi come funziona.
WPItaly - Copyright Creative Commons: CC BY-NC-SA 4.0