Risposte nei forum create
-
AutorePost
-
smartmousePartecipante
Nelle impostazioni di FeedWordpress, sotto Custom Post Settings, c’è la parte dedicata ai Custom Fields, con campi Key e Value da riempire.
Sotto c’è scritto:
Enter a text value, or a path to a data element from the syndicated item.
For data elements, you can use an XPath-like syntax wrapped in $( … ).
hello = the text value hello
$(author/email) = the contents of <author><email>…</email></author>
$(media:content/@url) = the contents of <media:content url=”…”>…</media:content>
Ho provato a scrivere “Image” nel campo key e nel campo value ho inserito “$(img)”, ma non ha funzionato.
Forse non c’è bisogno di effettuare modifiche al plugin, magari può funzionare usando la giusta sintassi…
Cosa ne pensi a questo punto?
smartmousePartecipanteTrovato!
Non lo vedevo perchè andava attivato in “Impostazioni schermo”.
In ogni caso non c’è il campo “Image” e l’ho creato io manualmente.
Comunque il tema è questo: http://www.w*rdpressthemesb**k.com/penda-forex
Dal momento che i post vengono creati da FeedWordpress, sai se c’è un modo per fargli creare automaticamente quel campo (e riempirlo anche)?
Edit: ho trovato il modo in FeedWordpress, solo che per ogni post dovrebbe mettere il link dell’immagine che trova nel post stesso tra i tag [img]e[/img] (sono post provenienti da un forum).
Sai se è possibile fare una cosa del genere?
smartmousePartecipanteIl tema non ha istruzioni, inoltre non c’è nessun campo Image “quando si scrive un articolo”. Intendi quando si vuole creare un nuovo post? Se si, non ho un campo Image…
smartmousePartecipanteOk, grazie per l’aiuto.
E buon lavoro con WP!
smartmousePartecipanteWow, complimenti allora! Pensavo fosse una funziona presente nel codex che non conoscevo.
Riguardo il “;” ti assicuro che ci voleva (parlo però da profano) perchè mi dava errore:
Parse error: syntax error, unexpected ‘}’, expecting ‘,’ or ‘;’ in /xxx/wp-content/themes/coreleos/header.php on line 13
smartmousePartecipanteHa funzionato! Grazie mille!
Solo un appunto: mancava un “;” dopo “$categoria” e andava usato “»” al posto di “»”.
Una curiosità : come sapevi di questo codice? Lo hai fatto tu o magari lo hai preso dal codex?
smartmousePartecipanteScusami avevo letto di fretta. No, gli articoli appartengono solo ad una e una sola categoria.
C’è soluzione in questo caso?
smartmousePartecipanteNo, possono essere di una categoria diversa, a seconda dell’articolo.
Perciò chiedevo come fare, altrimenti lo avrei sostituito e basta.
E’ una cosa fattibile?
2 Settembre 2011 alle 23:40 in risposta a: Mostrare articoli solo di una determinata categoria tramite un pulsante #87920smartmousePartecipanteSalve di nuovo, ho risolto il mio problema con questo http://codex.wordpress.org/Navigation_Menus.
Ho creato un menu nell’header con i seguenti pulsanti:
– Home
– News
– Info
Il primo bottone l’ho creato aggiungendo un link alla home page del sito. Il secondo pulsante l’ho creato aggiungendo la categoria “News”. Infine il testo l’ho linkato alla pagina “Info”.
Ora vorrei creare un altro pulsante che mostri tutti i post di tutte le categorie, eccetto quelli della categoria “News”.
Come posso fare?
22 Agosto 2011 alle 23:33 in risposta a: Mostrare articoli solo di una determinata categoria tramite un pulsante #87723smartmousePartecipanteCos’ha il template che non ha? E per via della funzione get_settings che risulta essere non più utilizzata da WordPress?
-
AutorePost