Ciao a tutti,
sto creando un widjet da inserire in un sito in wordpress
il widjet dovrebbe visualizzare una lista di offerte
e un link per poter accedere ad esse.
Per rendere tutto dimanico ho creato una funzione php che
dato un dominio es mio_sito.html mi restitutisce tutti gli url.
La funzione si trova nel backand e si chiama get_utl_offerte.php
Non so come inserire questi risultati negli href ???
mi spiego meglio adesso ho tutti linK statici in questo modo:
Come posso ciclare e inserire gli url restituiti dalla funzione?
sto creando un widjet da inserire in un sito in wordpress
il widjet dovrebbe visualizzare una lista di offerte
e un link per poter accedere ad esse.
Per rendere tutto dimanico ho creato una funzione php che
dato un dominio es mio_sito.html mi restitutisce tutti gli url.
La funzione si trova nel backand e si chiama get_utl_offerte.php
Non so come inserire questi risultati negli href ???
mi spiego meglio adesso ho tutti linK statici in questo modo:
HTML:
<div style="padding-left:0px;" class="current-menu-item">
<img class="immagine-offerta" src="immagine-offerta_1.jpg" alt="">
<a>Offerta</a>
<button style="width: 70%; padding: 0px; font-size:10px; height:35px; line-height:5px; background:#b95845; ">
<a href="/offerte/offerta1/">Prenota Adesso</a></button>
</div>
</li>
<li>
<div style="padding-left:0px;" class="current-menu-item">
<img class="immagine-offerta" src="immagine-offerta_2.jpg" alt="">
<a>Offerta</a>
<button style="width: 70%; padding: 0px; font-size:10px; height:35px; line-height:5px; background:#b95845; ">
<a href="/offerte/offerta_2/">Prenota Adesso</a></button>
</div>
</li>
<li>
<div style="padding-left:0px;" class="current-menu-item">
<img class="immagine-offerta" src="immagine-offerta_3.jpg" alt="">
<a>Offerta</a>
<button style="width: 70%; padding: 0px; font-size:10px; height:35px; line-height:5px; background:#b95845; ">
<a href="/offerte/offerta_3/">Prenota Adesso</a></button>
</div>
</li>
Ultima modifica di un moderatore: