StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 06-28-2011, 01:55 PM
PeteG PeteG is offline
Registered User
 
Join Date: Jun 2011
Posts: 5
Default how do I call custom field after header in childtheme..

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 }
Instead of the message I typed in to custom field in this code spits out the blow just after header. What is that I'm doing wrong here?
get_post_meta($post=>ID, 'welcommessage', true);

Thank you.
Pete.
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 04:43 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.