As we have been doing more challenging and complex websites with Cwicly, we have been facing certain limitations in the visibility conditions.
The first issue is that except for very simple cases, just being able to switch between AND / OR is not sufficient.
Display CTA section if -
- Pages are - Home, About or Contact Us
- Coming soon / Maintenance is not enabled
- User is admin
There are many cases where a sequence of AND / OR logic is required. So far, due to the full-featuredness of Cwicly (and a bit of ingenuity) we have managed to find a way to workaround these limitations, but ins some cases it creates unwanted technical debt and/or hacks.
The second issue is that it is unclear whether or not the AND / OR switch applies to the “Hide from guests” and “Hide from logged in users” toggles.
In our tests it doesn’t appear to be as we attempted switch to OR but this didn’t logically make a difference. We attempted to mitigate this but using a function return visibility condition for the logged in / out part. This led us to the next issue.
The third issue is with regards to the OR condition. Logically, if you have an OR, it implies that the opposite of the first condition must be true in subsequent conditions.
Display post content block if -
- Post is not protected
- User is logged in (and implicitly resource is not protected)
Out initial tests indicate that this doesn’t yield the desired / expected results.
Here are the exact conditions:
We’ve put this as feedback to see if there are already solutions for any of these issues and to determine whether they are bugs or feature requests so appropriate steps can be taken.
- WordPress version: 6.3.1
- Cwicly Plugin version: 184.108.40.206