Support

Account

Home Forums Front-end Issues wp localize script and jquery Reply To: wp localize script and jquery

  • Hello,

    thanks but I create date and another custom field which works in product:
    http://wp.swlabs.co/exploore/cruises/alaska/

    and now I want show this field also in grid: http://wp.swlabs.co/exploore/cruises/

    Post type for cruises is only one in ACF: sizexploore_crusie.

    I add manualy to product template:

    
    <div class="class_field">
      <?php if( get_field('custom_field') ): ?>
        <h4>Somme text: <?php the_field('custom_filed'); ?></h4>
      <?php endif; ?>
     </div>
    

    But can’t add it on grid template, because of printf formated %1$s, %2$s, %3$s which don’t accept php because is html array, so I try to add this field to price with jQuery …