get_post_meta not working in child theme

Community Forums Forums Design Tips and Tricks get_post_meta not working in child theme

This topic is: resolved

This topic contains 2 replies, has 2 voices, and was last updated by  NWTD 2 years, 10 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #9772


    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:

    Here’s the page template I’m building:

    Here’s a link to the front end that visitors will see:


    Bill Murray

    Make $post global and use the function genesis_get_custom_field(), as in genesis_get_custom_field( ‘myfield’ )

    Web: or Twitter: @wpperform

    We do managed WordPress hosting.



    Thanks Bill. that worked perfectly.

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘get_post_meta not working in child theme’ is closed to new replies.