Post Parent Status for Attachments
-
Hi all! Going crazy trying to work this out. I am using pre_get_posts to adjust the wordpress query for an attachment taxonomy. Attachments have the post_status of inherit, but by specifying that in my pre_get_posts I’m getting attachments for parent posts in draft and pending status. Any thoughts on how to restrict the results to only published parent posts?
Thank you!!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Post Parent Status for Attachments’ is closed to new replies.