/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// Get custom field values for easy use later function get_custom_field_value($szKey, $bPrint = false) { global $post; $szValue = get_post_meta($post->ID, $szKey, true); if ( $bPrint == false ) return $szValue; else echo $szValue; }