Filtering: AND OR
-
I would like to export a set of posts where either the post’s slug, or the parent post’s slug is “ovk”, and naturally I would only like to export those posts that are published.
I think that means using a combination of ANDs and ORs, but I haven’t been able to manage this just yet. How would I go about this?
Note: posts normally do not have the “parent post” capability that pages have, so I have turned this on (on init: $object = get_post_type_object(‘post’); $object->hierarchical = true). I am assuming that the WP_Query that the plugin creates to select the objects to export handles this just fine.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Filtering: AND OR’ is closed to new replies.