I’m building a custom child theme with a custom page template to pull some information from a custom post type I’ve created. I’ve created this custom post type and several custom fields. In the dashboard, I’ve been able to successfully call these custom fields using get_post_meta for customizing the columns for my custom post type.
However, when I attempt to call these custom fields to display on the front end of the site, I get nothing.
Here’s the code I’m using to attempt to display ont he front end: http://pastebin.com/dUPtyCh8
Here’s the page template I’m building: http://pastebin.com/tT5aRjQL
Here’s a link to the front end that visitors will see: http://contractorwebsiteservices.com/intheblackhorses/todays-racing-selections/
Make $post global and use the function genesis_get_custom_field(), as in genesis_get_custom_field( ‘myfield’ )
Thanks Bill. that worked perfectly.
The topic ‘get_post_meta not working in child theme’ is closed to new replies.
Are you a blogger, web designer, developer, or website owner looking to generate more income?
Promote products for the largest and fastest growing online website platform as part of our affiliate program.