![]() |
|
||||||
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Hi,
I'm tying to call a custom field as a string underneath the header. Custom filed is called "welcomemsg". I've identified the hook as genesis_after_header. Below is how I called the custom field through child theme's functions.php Code:
add_action('genesis_after_header', 'page_welcom_message');
function page_welcom_message() { ?>
get_post_meta($post=>ID, 'welcommessage', true);
<?php }
get_post_meta($post=>ID, 'welcommessage', true); Thank you. Pete. |
| Thread Tools | |
| Display Modes | |
|
|
© Copyright 2012 Copyblogger Media LLC · StudioPress™ is a trademark of Copyblogger Media LLC
Privacy Policy | Refund Policy | Terms of Service | Affiliate Program | Contact Us