New answers tagged

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 ...
user avatar
  • 52.5k
1 vote
Accepted

complex get_posts() query to select child pages

You need a loop for this to handle the condition: /** list for course and childless department pages */ $course_and_childless_department_pages = array(); /** get department pages */ $department_pages ...
user avatar

Top 50 recent answers are included