• Hi, I created the Ocean wp child theme and I’m creating a custom template for a custom post type inside the “partial” folder, everything seems working, the only thing I’m stuck in is retrieving current post fields/custom fields. I tried echo get_post_meta( get_the_ID(), "key", true ); or even the native cpt plugin’s display code, but I can’t make it work… Am I missing something?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘get_post_meta not working on OceanWp child theme’ is closed to new replies.