Load PUM assets only if certain ACF field value is set
-
Is it possible to ONLY load the PUM files if the page itself has the
popup_trigger
shortcode on it? Alternatively, is it possible to ONLY load the PUM files if the page has a certain ACF field value?I like that your Popup Settings > Targeting is there. But we are dynamically adding the Popup via a function, which adds the
popup_trigger
only if the page has a certain ACF field value set.As it is now, because we can’t make use of the current conditions in the Targeting setting, the form assets are loading on all pages, which isn’t ideal.
It would be nice if there was a Condition which let us set a custom field name and then the conditions of that field value which would then load the form assets. Even if this was possible via a PHP function.
- The topic ‘Load PUM assets only if certain ACF field value is set’ is closed to new replies.