WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to fix the effect of an error that left empty a relationship field that should have been autofilled.

To fix this I need to find all pods item that has the relationship not set, but I don't know how to do it.

I tried with 'where' => 'source.id = ""' in a find() but with no luck.

Any idea?

share|improve this question
up vote 0 down vote accepted

What you want is:

source.id IS NULL

This will match items that have no source set at all.

share|improve this answer
Thanks Scott! It works. – Bakaburg Sep 24 '13 at 15:37

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.