I've got dynamic population working, just need a quick answer on how I can change the label by using some of the post meta I have.
Trying to display a dynamic price after the field/title/label?
I've got dynamic population working, just need a quick answer on how I can change the label by using some of the post meta I have.
Trying to display a dynamic price after the field/title/label?
I got it, use jquery to replace label title. I just set a css class to my field and used
'<script type="text/javascript">
jQuery(document).ready(function() {
jQuery(".kidsprice label").html('<?php echo "Child(s) $" . get_post_meta( get_the_ID(), 'kid_price', true); ?>');
});
</script>'
hope this may help someone someday.
Glad you found a solution that works for you. All my best!