Visualizzazione 1 filone di risposte
Visualizzazione 1 filone di risposte
- Devi essere connesso per rispondere a questo topic.
Email: info@wpitaly.it
Home › Forum › Problemi Vari con WP › Limitare i link alle pagine.
Salve
Io sto usando nella sidebar la sezione pagine come link ad altre pagine ospitate sul mio sito, ma l’elenzo è vasto, e io vorrei far si che apparissero solo gli ultmi “tot” link inseriti.
ho provato a vedere i marcatori, ma l’unico marcatore che si avvicina a questa soluzione è “depth”, che però mi stabilisce il numero di livelli e non dei link che io inserisco, che sono tutti in un solo livello.
la mia stringa attuale è questa:
<?php wp_list_pages(‘sort_column=ID&sort_order=DESC&title_li=’); ?>
quale marcatore dovrei aggiungere?
questo è il blog:
http://www.u2bad.com/index.php
grazie mille
MrBoh
L’unico tag disponibile è quello e non è previsto un numero limite di pagine, potresti aggirare il tutto usando due pagine fittizie di nome ad es. show e noshow, le tue pagine avranno come pagina madre una delle due pagine di cui sopra e il tag lo modificherai nascondendo la pagina noshow e di conseguenza tutte le pagine figlie.
Ovviamente il cambio di categoria di una pagina da show a noshow va fatta a mano.
Altrimenti occorrerebbe interagire direttamente col DB e crearsi una propria funzione di lista pagine.
WPItaly - Copyright Creative Commons: CC BY-NC-SA 4.0