Use ACF options page field as Show/Hide condition input

I am trying to add a Show/Hide condition for a contact block so that the contact option is only shown when a WhatsApp number is entered within the options page. However, something seems to be going wrong.


Settings


Output

Warning : Uninitialized string offset 0 in /home/deb56708n33/domains/cfdemo4.nl/public_html/skelter/wp-content/plugins/cwicly/core/includes/dynamic/cc-conditions.php on line 346

Since an ACF Show/Hide condition for a post specific field worked properly I suspect there is no support for ACF fields from an options page yet.

It would be great if this could be investigated!

Link: [https://skelter.cfdemo4.nl/contact/ ]Contact - Bedrijfsnaam B.V.)

Environment info

  • WordPress version: 6.1
  • Cwicly Plugin version: 1.2.5.2
  • Cwicly Theme version: 1.0.3

Hi there @GM-Mike,

Sorry for not responding earlier to this.
Indeed, the field location is definitely needed inside the Show/Hide conditions. We’ll hopefully have this available in the next few updates.

2 Likes

Hello @GM-Mike,

Thanks for your patience on this one.
ACF locations are now available with 1.2.8.5.

If you encounter any issue at all, please let me know by replying to this thread.

Cheers,