Viewing 1 replies (of 1 total)
  • I use the following php to check if the Key I want to show even exists, then display the Value for the Key

    <?php
          if (get_post_meta($post->ID, 'client', true)){  //If the Key 'client' exists...
                $key_description_value = get_post_meta($post->ID, 'client', true);  //...assign the variable $key_description_value the Value
                echo $key_description_value; //Print the Value to the screen
          }
    ?>
Viewing 1 replies (of 1 total)

The topic ‘Help using custom fields’ is closed to new replies.