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

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

datatable - Matlab struct computations -