Ciao ragazzi, ho la necessità di inserire del codice php dentro una variabile. Il codice è il seguente:
<?php bloginfo('template_url'); ?>
dentro un'immagine e poi il tutto in una variabile del tipo:
1) /images/descrizione-scheda.jpg" width="94" height="16" alt="" />
2) $immagine = /images/descrizione-scheda.jpg" width="94" height="16" alt="" />
tutto questo perchè ho bisogno del path relativo creato da <?php bloginfo('template_url'); ?>
ho provato una cosa del genere:
$immagine = "";
però nulla... mi stampa il percorso e poi invece di aggiungere /images/scheda.jpg
mi aggiunge anche l'ip
con questo risultato:
http://192.168.63.128/sitostudio/wp-content/themes/sitostudiohttp://192.168.63.128/sitostudio/images/scheda.jpg