Timeline for Query that loads a custom type AND posts whose ids are not inside those custom types custom fields
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 23, 2014 at 8:09 | vote | accept | Alevalentini | ||
Jul 22, 2014 at 15:00 | history | edited | Johannes Pille | CC BY-SA 3.0 |
edited body
|
Jul 22, 2014 at 10:34 | comment | added | Alevalentini |
I got it. The right syntax was infact 'post__not_in' => $linked_posts,
|
|
Jul 22, 2014 at 10:01 | comment | added | Alevalentini |
Sorry I cheered too quickly. It seems it's not working. The second part. $linked_posts is an array and it's properly filled with the posts ids. But then, in the second query, posts are not excluded. I tried also this syntax: 'post__not_in' => array ( $linked_posts ), but with no effect.
|
|
Jul 22, 2014 at 8:07 | vote | accept | Alevalentini | ||
Jul 22, 2014 at 10:31 | |||||
Jul 21, 2014 at 13:23 | history | answered | Johannes Pille | CC BY-SA 3.0 |