Browser: MS Edge Version 111.0.1661.44 (Official build) (64-bit)
OS: Windows 10 Home
URL: (See URLS belolw)
Video: Loom | Free Screen & Video Recording Software | Loom
I’m trying to add a display condition to a section, to only display the section if posts of a particular taxonomy are found.
I have a function in my functions.php file that queries the DB and returns the count() from get_posts(). When I echo the return value in a code block I get the correct value being returned.
I’ve tried every combination for display condition, and it’s not working. Here’s the video:
The URLs I was using for testing were:
- https://slyng.pdms.ca/deal-brand/10-dc/ (should not show section)
- https://slyng.pdms.ca/deal-brand/ooze/ (should display section)