-
Does GenerateBlocks >= 2.0 support loading dynamic data from an Advanced Custom Fields Options Page? If not, is there currently a workaround, or is this feature planned?
For many websites, Options Pages are essential to provide my clients with a simple way to manage global options easily (e.g., prices, opening hours, etc.).
Thanks in advance!
-
Hi there,
yes, you need the Pro version of GenerateBlocks 2.0.
It goes something like this:
1. Add.a Query Block
2. set the Query Type toOption
and add your Option key.
3. inside the Loop item add{{loop_item key:your_field_name}}
dynamic tags to display each field, -
Hi David,
thanks for your reply!
Does this mean I need to use a Query Block instead of a Text Block for a simple text value? Essentially, I just want to display strings from an Options Page, for example, in a Headline or Text Block (without a loop).
-
No, the simple headline/text block can not pull data from the options page.
-
Oh, that’s what I feared – too bad. At the moment, this feature is exactly what’s keeping me from upgrading to Pro, as I still have to rely on custom blocks or shortcodes.
-
yes, I agree it’s easier to use ACF shortcode.
-
Thank you 🙂
It would be fantastic if you could add this to the feature wishlist.
In the meantime, I’m using shortcodes and placing them directly in the headline or text blocks to render the options.
-
You can do single option fields. Without the need for the query block
Theres a Dynamic Tag called Option, just aadd that to a Text block or image URL and choose the option key -
Hey David, thanks for the update.
Since I can’t see this option, it’s likely a Pro feature. Would it be possible to test it out somehow before committing to a subscription?
-
It is a Pro option in GB 2.0 ( which is still in beta release )
We don’t do trial versions, but all our software comes with a 30 day money back guarantee if you want to give it a try. -
Hey David,
thanks. I just purchased the Pro version and will give it a try.
-
Thanks! Let us know how you get on. Any feedback would be appreciated.
-
Hey David,
I just tested this with a simple text field, and it worked perfectly. This is incredibly helpful! Consider this resolved 🙂
I’m curious to see how things like grouped ACF fields or repeaters will perform — though I understand that not everything can be handled through dynamic tags.
-
That is where you would use the Query block, and set the Query Type to Post Meta. In meta field provided add the repeater group key name.
Then for each of the sub fields you can choose the
loop_item
dynamic tag and set the key.
- You must be logged in to reply to this topic.