Post Type incorrectly set when adding attachments programmatically
-
When using wp_insert_attachment to programmatically add an attachment to a post, the post type of the attachment gets changed from attachment to whatever the post type of the parent was. This causes the attachment to disappear from the wordpress interface entirely, but leaves it on the filesystem.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Post Type incorrectly set when adding attachments programmatically’ is closed to new replies.