• Resolved expient

    (@expient)


    I’m using:

    –ACF 6.1.6
    –GenerateBlocks 1.7.3

    I’m familiarizing myself with the dynamic data feature and how best to access data from custom fields created with ACF.

    I believe the ACF custom fields should be under:
    Data Source (Current Post) => Content Source (Post Meta) => Post Meta Field (Choose or add meta key)

    The Post Meta Field dropdown is empty. The text below says: “Live preview is only available to meta exposed to the REST API.” I believe I have correctly toggled on “Show in REST API” in the settings for my ACF group.

    I am able to manually enter the meta key, which shows the meta key in the admin and the value in the front end.

    I would like to get the live preview of the meta fields in the dropdown with preview of the data in the admin when laying out the page design. Is this possible?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support ying

    (@yingscarlett)

    Hi @expient ,

    When the “Show in REST API” is toggled in ACF, you should be able to select the post meta name from the dropdown list.

    Some simple fields value would show directly in the editor, eg. number type and text type.

    But for more complicated field types, it’s not possible to show in the editor at this moment, unfortunately.

    Thread Starter expient

    (@expient)

    Hi @yingscarlett

    Thanks for helping. For testing purposes I created 2 text inputs associated with my CPT. I have “Show in REST API” toggled on.

    When I try to create a heading in GenerateBlocks the custom fields are not listed here:

    Data Source (Current Post) => Content Source (Post Meta) => Post Meta Field (Choose or add meta key)

    If it appears everything is set up correctly, is there anything else I can try?

    Thanks,

    Eric

    Plugin Support ying

    (@yingscarlett)

    Oh I’m sorry, only when GB Pro is installed and activated, the post meta would show in the dropdown list. Sorry for the confusion.

    Thread Starter expient

    (@expient)

    Thanks.

    Thread Starter expient

    (@expient)

    Just purchased and installed the pro version. Tested it and it works great. Love this plugin!

    Plugin Support ying

    (@yingscarlett)

    Glad to hear that ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to access post meta from custom post type’ is closed to new replies.