Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 504799

Hiding several sections based on ACF being blank

$
0
0

Replies: 0

Hi there

@jeresmash

I am having trouble with the plugin and a combination of ACF and Custom Post Type.

I seem to be able to get 1 section to hide or not hide, however, I don’t seem to be able to get multiple sections to hide.

We have 5 sections in total, some of which don’t have any content, in most cases just 2 or 3, and a few that have all 5.

The plugin’s behavior seems to work fine when we have 1 criteria running, but if we have 2 or more running, then none of the content appears for any of the sections.

Any help or advise you can give much appreciated. We have tried using

function_exists(‘get_field’) && get_field(‘event_end_date’) && get_field(‘event_end_date’) !== ” from a previous post.

Many thanks

Steve


Viewing all articles
Browse latest Browse all 504799

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>