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:

    and now I want show this field also in grid:

    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; ?>

    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 …