JPry

output-meta.php

Oct 28th, 2011
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.91 KB | None | 0 0
  1. /* This is called from within the Loop to output custom field data)*/
  2. function tsgkb_do_ps_set_content() {
  3.     global $meta_prefix;
  4.     echo "<h3>Problem Details:</h3>\n";
  5.     echo genesis_get_custom_field( $meta_prefix . 'problem-text' ) . "\n";
  6.  
  7.     if (genesis_get_custom_field( $meta_prefix . 'tr-cr-number' ) !== '' ) {
  8.         echo '';
  9.     }
  10.  
  11.     echo $meta_prefix;
  12.  
  13.     /* This next custom field is returning an array, so I'm using the get_post_meta
  14.      * function instead of the genesis_get_custom_field function.
  15.      */
  16.     echo '<p><strong>Product:</strong> ' . implode( ' ', get_post_meta( get_the_ID(), $meta_prefix . 'product', true) ) . "<br />\n";
  17.     echo '<p><strong>Version:</strong> ' . '(the version number will go here)' . "<br />\n";
  18.     echo '<p><strong>Area:</strong> ' . '(the area will go here)' . "<br />\n";
  19.     echo '<p><strong>Problem ID:</strong> ' . get_the_ID() . "</p>\n";
  20. }
  21.  
Advertisement
Add Comment
Please, Sign In to add comment