Support

Account

Home Forums General Issues Cannot get field data

Helping

Cannot get field data

  • I’ve attached ACF fields to a cpt.
    Every instance of the CPT has ACF data attached.

    I want to get the data and publish it within a loop.

    Within the loop get_fields returns NULL for every instance of the CPT, despite the fact that ACF custom data exists.

    I know that the custom data exists, because I can see it if I use get_post_meta();

    So how to do I get the field data using ACF’s functions?

    My loop:
    https://pastebin.pl/view/59456406

  • Your link does not work and shows a suspicious content warning. Please provide code by using code tags available in this forum.

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

You must be logged in to reply to this topic.