OR Operator for Conditional Visibility In Action

Blog posts can have an author and/or categories. We're showing a message over post figure. But if a post does not have an author OR a category then the message will be hidden.
10 Quick Tips About Blogging
Has author or category!
No categories!

10 Quick Tips About Blogging

Soluta mollitia enim optio. Quam aliquid voluptas quos iste occaecati necessitatibus et. Quasi velit distinctio aperiam exercitationem vero. Repellendus aliquid est aut tempore aspernatur reprehenderit. Nostrum veniam asperiores. Quia commod
July 12, 2023
5 min read
The History Of Web Design
Has author or category!

The History Of Web Design

Minima vel laborum quam nulla ut consequatur odit quia quibusdam. Rerum ad sed eos ducimus. Cupiditate et quas ad a voluptates quod qui autem. Dolor enim quis. Velit facere blanditiis sint officiis eveniet aut totam. Molestias officia rerum quis possimus temporibus quo itaque. Sunt autem perspiciat
July 12, 2023
5 min read

CSS Logic Code Snippet

If you know CSS then following snippet will do for you. If not, you can clone this project and tweak all its bits.
<style>
  .has-author-or-category:has(.has-author:not(.w-condition-invisible)) + *,
  .has-author-or-category:has(.has-category:not(.w-condition-invisible)) + * {
  	display: block !important;
  }
</style>