Support

Account

Home Forums General Issues Get custom post type fields value in theme with code Reply To: Get custom post type fields value in theme with code

  • get_field() will only work on the pages of the custom post type. This is more to do with what loops are running on which pages.

    You can access those fields a couple ways, by using get_field( ‘field_name’, ‘ID of CPT post’ ) or you can loop through using a wp_query loop and get those fields from that Custom post type.