Home › Forum › Plugin e temi di WP › link del blogroll in una pagina
-
AutorePost
-
-
26 Agosto 2008 alle 19:19 #7691tiziorPartecipante
Ciao
ho cercato in giro e ho trovato che per inserire l’elenco dei link del blogroll bisogna usare questa stringa
<?php wp_list_bookmarks(); ?>
ho provato a metterlo in una pagina statica ma non funziona, è perchè sbaglio qualcosa o perchè può essere visualizzato solo nella sidebar?
-
26 Agosto 2008 alle 19:58 #57094andreaPartecipante
Il codice dovrebbe funzionare anche in una pagina.
Ricordati di inserirlo nel template della pagina, non nel testo della pagina stessa. In pratica conviene realizzare un nuovo template di pagina, a partire da quello standard, e associare questo nuovo template alla pagina che stai creando. Trovi il tutto spiegato nel wiki:
-
26 Agosto 2008 alle 20:40 #57095tiziorPartecipante
Grazie per la tua gentile risposta che comunque mi ha permesso di trovare la soluzione anche se non è quella che mi ha indicato.
Lo spiego perchè può essere utile anche agli altri, ho creato una pagina statica, sono andato alla fine della pagina, è dove c’è scritto Template Pagine, si può scegliere links, nulla di più semplice almeno per ora che mi permette di aggiungere i link del blogroll. come di vede cliccando in alto su Link Amici
Se non mi avessi detto di creare un template non avrei letto certo tutte le indicazioni.
Grazie
-
26 Agosto 2008 alle 20:52 #57096wollyAmministratore del forum
tizior la soluzione che hai adottato è proprio quella che ti ha proposto andrea.
L’autore del tuo tema aveva già creato un template di pagina per i links ma non tutti gli autori dei temi lo fanno quindi tu hai fatto solo l’ultima parte e cioè associare il template ad una tua pagina.
ciao
-
26 Agosto 2008 alle 20:57 #57097tiziorPartecipante
Grazie Wolly della spiegazione, sono nuovo di WP, ed ho imparato qualcosa di nuovo grazie a voi.
Adesso ho notato però che la pagina cosi com’è mette i link ma non mi permette di scrivere del testo al suo interno, credo, ditemi se sbaglio, che dovrei vedere il suo template ed eventualmente modificarlo. No?
-
26 Agosto 2008 alle 21:02 #57098wollyAmministratore del forum
esattodevi andare a modificare il template.
-
26 Agosto 2008 alle 21:14 #57099tiziorPartecipante
Ok, sarà un passaggio successivo che però mi richiede un po’ di tempo… ma niente non è per adesso.
Grazie wolly, interessante il tuo blog
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.