Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* This is called from within the Loop to output custom field data)*/
- function tsgkb_do_ps_set_content() {
- global $meta_prefix;
- echo "<h3>Problem Details:</h3>\n";
- echo genesis_get_custom_field( $meta_prefix . 'problem-text' ) . "\n";
- if (genesis_get_custom_field( $meta_prefix . 'tr-cr-number' ) !== '' ) {
- echo '';
- }
- echo $meta_prefix;
- /* This next custom field is returning an array, so I'm using the get_post_meta
- * function instead of the genesis_get_custom_field function.
- */
- echo '<p><strong>Product:</strong> ' . implode( ' ', get_post_meta( get_the_ID(), $meta_prefix . 'product', true) ) . "<br />\n";
- echo '<p><strong>Version:</strong> ' . '(the version number will go here)' . "<br />\n";
- echo '<p><strong>Area:</strong> ' . '(the area will go here)' . "<br />\n";
- echo '<p><strong>Problem ID:</strong> ' . get_the_ID() . "</p>\n";
- }
Advertisement
Add Comment
Please, Sign In to add comment