1
vote
Conditional operator OR not working with custom fields
The problem is that you used OR, specifically the human verbal colloquial understanding, not the logical definition. What you actually meant was AND.
Here's a table demonstrating what happens to A and ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
loop × 3260wp-query × 705
custom-post-types × 507
php × 401
posts × 385
categories × 271
pagination × 210
query-posts × 188
custom-taxonomy × 186
theme-development × 159
custom-field × 146
query × 146
functions × 125
customization × 118
pages × 100
templates × 96
advanced-custom-fields × 81
get-posts × 76
plugins × 71
woocommerce-offtopic × 65
ajax × 64
taxonomy × 62
shortcode × 61
page-template × 61
tags × 59