WP Query of PODs
-
I’m trying to write a WP Query to reference all Posts (standard wordpress ‘post’ type) where my new Custom Post Type (‘people’) is assigned through a one-to-many relationship field (‘content_author’). Think of it like a type of author field for each post, where every post is assigned to one ‘people’. I plan to use this WP Query as a snippet for a custom query in Elementor, since you can’t filter by PODs relationship fields.
I’m a beginner at PHP, so I’m struggling and was wondering if any of you kind folks could help me write this? Here’s the fields and objects I’m trying to reference using the Magic Tags as a guide.
Custom Post Type ‘people’
@post_title
Kat Gates@id
1313
Relationship Field extended on post, showing the ID of the two posts associated with this Person
@authored_content.ID
3947, 3968`
- The topic ‘WP Query of PODs’ is closed to new replies.