Displaying an attribute via echo
-
Im wanting to echo an attribute from my product into javascript. I can do this using WordPress Custom fields by:
totalPrice = <?php echo get_post_meta($post->ID, 'financePrice', true);[0];?>;
How can I echo a products attribute (Finance_price)?
Many thanks.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Displaying an attribute via echo’ is closed to new replies.