get_fields() doesnt work with blank gallary
-
Hello! I’m currently working with a custom template. I’ve set up a custom image gallery field using the plugin, but I’m encountering an issue. When I try to access the fields on the front end using
get_fields()
, the page breaks if there are no images attached to the gallery. There are times when I don’t want to attach any images. How can I resolve this error?
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- You must be logged in to reply to this topic.