Allow File Uploads To A Post With WordPress ‘post_edit_form_tag’ Action

While working on a custom post type, I needed to upload a single photo with a post object. The form element in wp-admin/post-new.php or wp-admin/post.php does not allow file uploads by default. I have seen examples using javascript to append the needed enctype="multipart/form-data" attribute to the form element, but I wanted to avoid javascript.

Continue reading Allow File Uploads To A Post With WordPress ‘post_edit_form_tag’ Action