Forums
Home / Plugin: Advanced Custom Fields: Link Picker Field / Doesn't work with Widgets
(@jasonbahl)
9 years, 4 months ago
I tried adding this field to a Widget and it doesn’t seem to work. When I click “Insert Link” it opens the modal to pick a link, but once a link has been defined and I click “Add Link” the modal closes but the data isn’t set in the field.
https://wordpress.org/plugins/advanced-custom-fields-link-picker-field/
Hey,
I spent some time looking into this and I got it working.
In the /js/input.js file, any of the field selectors need to have body before them.
For instance, I changed
#' + doingLink + '-url'
to
body #' + doingLink + '-url'
I made this change for all selectors and now we’re good to go.
(@lookingsideways)
9 years ago
Ran into the same issue and this fixed it. Thanks!