Php , jQuery and html combined -
<script> $(".boxer").boxer({ formatter: formatcaptions }); function formatcaptions($target) { return '<p><span></span><?php the_field('price')?>' + $target.attr("title") + '</p>'; } </script>
i'm using jquery lightbox. fact in localhost worked well, i'm online doesn't show need. site www.automediarent.it ( go page "autoveicoli" under "le mie auto" ) hope me. lightbox 1 formstone
you not appear printing result of php function. try this:
<script> $(".boxer").boxer({ formatter: formatcaptions }); function formatcaptions($target) { return '<p><span></span><?php echo the_field('price'); ?>' + $target.attr("title") + '</p>'; } </script>
Comments
Post a Comment