Site logo

Archived topic

Can headline block pull data from ACF options page?

3 replies · Started by Elvis on June 17, 2022

Viewing posts 1–4 of 4

Hello,
I am making a Contacts Options page with ACF Pro, the reason, I want to have one location for all the contact info of the insitution, that I can then later pull from wherever. And If there are updated to data, I do it in one place.

Headline block does not seem to see the options post type. Am I missing something, or is it a missing feature? :D

best,
E

PS
can be done via shortcode like so [acf field="field_slug" post_id="options"] but would be neat if GB could do it UI way.

Hi Elvis,

I don't think it will work.
It requires the equivalent of a $post_id to be part of the get_fieldrequest.
The GB Block element would expect the Custom Field to exist on the actual page or post.

Yeah, I forgot options pages are not post types.
Decided to make a CPT instead.
Looks almost the same as options page, and its available to Headline Dynamic Data.
Thanks though.

Yes, I think CPT is a better choice in this case :)

This archived topic is closed to new replies.