Attachment Post Status
uamv opened this issue · comments
Joshua Vandercar commented
I noticed when attachment args are defined for inserting an attachment (image) that post_type
is set to publish
. I ran into a few issue with this in certain instances and think it should be set to inherit
, as outlined at http://codex.wordpress.org/Function_Reference/wp_insert_attachment
Doing so, fixed my issues.
Richard Brattlund commented
Guess you mean post_status
right?
Joshua Vandercar commented
Correct. post_status.