Custom Field Value


/ Published in: Other
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <?php echo get_post_meta($post->ID, 'custom-field-key', true); ?>
  2.  
  3. <a class="button_buynow" href="<?php echo get_post_meta($post->ID, 'affiliate', true); ?>" title="Buy <?php the_title(); ?>">Buy Now!</a>
  4.  

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.