Posted By

jakepaint on 02/04/08


Tagged

wordpress meta cms


Versions (?)

Display Meta Data Inline


 / Published in: PHP
 

gets singular meta data items and displays them inline

  1. <?php
  2. $id = $post->ID;
  3. $vovtitle = get_post_meta($post->ID, "vov_title", true);
  4. $vovpage = get_post_meta($post->ID, "vov_page", true);
  5. if (!empty($vovtitle)) {
  6. echo '<span style="font-size:.8em;color:#9C9E9C;">This prayer is listed with the title <b>'.$vovtitle.'</b> in the <u>Valley of Vision</u>';
  7.  
  8. if (empty($vovpage)) {
  9. echo '.</span>';
  10. } else {
  11. echo ' and is on page <b>'.$vovpage.'</b>.</span>';
  12. }
  13. }
  14. ?>

Report this snippet  

You need to login to post a comment.