Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Tweaks › Call product through a custom field › Reply To: Call product through a custom field
November 11, 2009 at 4:14 am
#15911
zac
Member
Thank you for the reply. Not quite what I need but closer… would it be possible you think for me to use the custom field just to put in the product id? Something like:
<?php if ( get_post_meta($post->ID, ‘productOne’, true) ) { ?>
<?php echo get_button_code_for_product(<?php echo get_post_meta($post->ID, “productOne”, $single = true); ?>”>); ?>
<?php } ?>
Then the custom field the client could just enter their product number.. would this work ??
… well I know that doesnt work… but something like that.. I am not sure how to write the php… or if it is possible ??