Home › Forum › Problemi Vari con WP › $ example
-
AutorePost
-
-
22 Febbraio 2012 alle 10:58 #20817tensiPartecipante
Salve a tutti
Qualcuno mi sa aiutare?
Ho bisogno di modificare WordPress in modo che inserisca automaticamente queste tag
in ogni nuovo post.
So che mi basterebbe metterle manualmente dalla “visuale HTML” del post ma ho bisogno che lo faccia wordpress automaticamente e a prescindere dal contenuto del post.
P.S.
Sapete dirmi un plugin per wordpress 3.3.1 per inserire immagini multiple ( gia` uploadate in wordpress ) ossia senza dover inserire un immagine per volta?
Grazie anticipatamente
-
23 Febbraio 2012 alle 11:02 #93675tensiPartecipante
‘
$ example
‘
-
23 Febbraio 2012 alle 11:03 #93676tensiPartecipante
$ example
-
23 Febbraio 2012 alle 11:04 #93677tensiPartecipante
Scusate…il codice che devo inserire e` questo:
<pre><code>$ example</code></pre>
-
23 Febbraio 2012 alle 13:31 #93683TittiModeratore
Sapete dirmi un plugin per wordpress 3.3.1 per inserire immagini multiple
Puoi già inserire immagini multiple nelle pagine, ma solo creando una galleria. Se è quest’ultima la cosa che non vuoi prova a vedere se questo plugin è ancora valido
Il resto mi dispiace ma non lo capisco
-
23 Febbraio 2012 alle 14:46 #93686reallocPartecipante
functions.php:
function my_the_content( $content ) {
return $content . '<pre><code>$ example</code></pre>';
}
add_filter( 'the_content', 'my_the_content' );Cheers,
Dennis.
-
24 Febbraio 2012 alle 10:31 #93708reallocPartecipante
Metti il codice alla fine in functions.php …
Cheers,
Dennis.
-
26 Febbraio 2012 alle 11:48 #93819tensiPartecipante
function my_the_content( $content ) {
return $content . '<pre><code>$ example</code></pre>';
}
add_filter( 'the_content', 'my_the_content' );Lo ho fatto ma non funziona come vorrei. Io vorrei che al posto della scitta “example” ci sia il contenuto del mio post ( ossia le tag img e a herf ). In pratica ho bisogno che ogni volta che vado a mettere un nuovo post, wordpress metta automaticamente quei tag di apertura (all’inizio) dei tag html del mio post e quelli di chiusura alla fine dei tag html del mio post. Vorrei che il mio post venga automaticamente “rinchiuso” entro i tag di cui sopra.
-
26 Febbraio 2012 alle 19:08 #93837San PietroburgoPartecipante
Se invece di chiedere come inserire $ example o questo tag avessi detto per filo e per segno cosa esattamente desidere fare ed ottenere.. Magari era più semplice darti un aiuto.
Quindi dimentica per un attimo $ example o questo tag, e riformula la domanda come suggerito.
-
27 Febbraio 2012 alle 8:37 #93855tensiPartecipante
<code><pre><a href="http://www.spesasemplice.com/home/wp-content/uploads/2012/02/promozioni_Pagina_011.jpg"><img class="alignnone size-medium wp-image-140" title="promozioni_Pagina_01" src="http://www.spesasemplice.com/home/wp-content/uploads/2012/02/promozioni_Pagina_011-228x300.jpg" alt="" width="150px" height="200px" /></a><a href="http://www.spesasemplice.com/home/wp-content/uploads/2012/02/promozioni_Pagina_02.jpg"><img class="alignnone size-medium wp-image-141" title="promozioni_Pagina_02" src="http://www.spesasemplice.com/home/wp-content/uploads/2012/02/promozioni_Pagina_02-228x300.jpg" alt="" width="150px" height="200px" /></a><a href="http://www.spesasemplice.com/home/wp-content/uploads/2012/02/promozioni_Pagina_03.jpg"><img class="alignnone size-medium wp-image-142" title="promozioni_Pagina_03" src="http://www.spesasemplice.com/home/wp-content/uploads/2012/02/promozioni_Pagina_03-228x300.jpg" alt="" width="150px" height="200px" /></a><a href="http://www.spesasemplice.com/home/wp-content/uploads/2012/02/promozioni_Pagina_011.jpg"><img class="alignnone size-medium wp-image-140" title="promozioni_Pagina_01" src="http://www.spesasemplice.com/home/wp-content/uploads/2012/02/promozioni_Pagina_011-228x300.jpg" alt="" width="150px" height="200px" /></a><a href="http://www.spesasemplice.com/home/wp-content/uploads/2012/02/promozioni_Pagina_02.jpg"><img class="alignnone size-medium wp-image-141" title="promozioni_Pagina_02" src="http://www.spesasemplice.com/home/wp-content/uploads/2012/02/promozioni_Pagina_02-228x300.jpg" alt="" width="150px" height="200px" /></a><a href="http://www.spesasemplice.com/home/wp-content/uploads/2012/02/promozioni_Pagina_03.jpg"><img class="alignnone size-medium wp-image-142" title="promozioni_Pagina_03" src="http://www.spesasemplice.com/home/wp-content/uploads/2012/02/promozioni_Pagina_03-228x300.jpg" alt="" width="150px" height="200px" /></a>
</code></pre>Questo e’ il risultato che vorrei ottenere. Ossia varie immagini (e link) una accanto all’alatra con una scrollbar orizzontale per poterle socorrere.
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.