Created
February 12, 2013 19:18
-
-
Save DMSpeed/4772518 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Template Name: Question | |
* This template displays Question Details | |
*/ | |
add_action('genesis_after_post_content', 'child_get_questions_field'); //display meta-box content after the content | |
//Function to show the content | |
function child_get_questions_field() { | |
echo '<div class="questions">'; | |
echo '<hr><strong>Website: </strong><em>'. genesis_get_custom_field( '_cmb_ds_info_website_1' ) .'</em>'; | |
echo '<p><strong>Website: </strong><em>'. genesis_get_custom_field( '_cmb_ds_info_website_2' ) .'</em></p>'; | |
echo '<p><strong>Website:</strong><em> '. genesis_get_custom_field( '_cmb_ds_info_website_3' ) .'</em></p>'; | |
echo '<p><strong>Additional Source:</strong>'. genesis_get_custom_field( '_cmb_ds_source_1' ) .'</p><hr>'; | |
echo '<p><strong>Additional Source:</strong>'. genesis_get_custom_field( '_cmb_ds_source_2' ) .'</p><hr>'; | |
echo '<p><strong>Additional Source:</strong>'. genesis_get_custom_field( '_cmb_ds_source_3' ) .'</p><hr>'; | |
echo '</div><!-- end .questions -->'; | |
} | |
genesis(); // requires Genesis 1.3+ | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment