I have some elements with basic conditional logic applied to show or hide them based on if they’re empty or not. In the builder preview these elements are not output correctly, they’re hidden in the preview while they should be visible. On the front end the output is correct.
@JvP, can you please share a little more information on the types of conditions you’re using so we can look into this further? Thanks!
I’m using a is not
empty condition check to see if a featured image is set (an ACF field) on a custom taxonomy. The front end output is as intended, but in the builder the featured image doesn’t show even if one is set.
Thanks for the feedback, I have noted it down to be looked into.
Hey @JvP , Could I get more info on your setup? A picture or staging access would help. Is this an image array? When you post the ACF field in a text field like this {{dc:acf:post_field field="image"}}
does anything show up? When you resave in the gutenburg editor do these fields show back up? Are these within a looper? Thanks in advance, I’m not able to recreate currently.
Hey @charlie, I hope the bug hunting is going well
Here’s some more info on the setup.
- I have a CPT with a custom taxonomy “category” assigned to it
- Created a custom field (with ACF Pro) to be able to set a featured image for the custom taxonomy (each category can have its own featured image)
- I’ve made a custom layout for the single page view of the CPT
- In that template I have a row (looper provider for the custom taxonomy) and a column (looper consumer) It’s a simple template that lists all the categories assigned to that custom post
- The conditional logic to hide the featured image if none is set does not work in the builder. The front end is fine. I’m also checking the term description to hide it if none is set. Same thing there
- Gutenberg is not being used on the site
- The image is currently set as an array, and when I place it in a text field it does output something
Hopefully that helps. If not I may get you access to an example if really needed.
Yeah I think I need access, could be a number of things. You can also secure note me a site XML export or DB dump if that’s easier. Thanks
Hey @charlie, I’ve just added a secure note with login details for you. It’s not the site and setup I originally ran into this issue on, but it’s happening here as well. So feel free to take a look at the mentioned CPT in the secure note where this issue is occurring.
Let me know if you need anything else
Thanks a bunch, I’ll let you know what I find out!
Okay this is in line with the other issues we had come up around the looper first field not rendering properly. When I added a description and a featured image to the one without data the first looped entries conditions worked. We’ll get that fixed for everybody. thank you for your patience.
Awesome, thank you
No problemo.