Broken Media Library
I’d moved the root of my site from /blog/ to / and not changed it in the general options. Everything seemed to work fine apart from the media library. Correcting the path solved the problem.
I’d moved the root of my site from /blog/ to / and not changed it in the general options. Everything seemed to work fine apart from the media library. Correcting the path solved the problem.
Those new files are your original file resized. When you insert an image and pick ‘medium’ ‘thumbnail’ or ‘large’, they aren’t generated on the fly or pulled out of thin air. They’re created when you upload the image to save size. The reason you can’t see these in the media section is because the media … Read more
In order to show $_FILES or $_POST, you will need to create a sumbenu_page under the post_type. Then, you will be able to manipulate $_FILES and $_POST in whichever way you want. This means that upload_screen() function should be a submenu page.
See the all uploaded images of a user as an admin
Do I need FTP set up to upload files to wordpress server
The content of the post is just that – the value of post_content field. You could retrieve HTML for attachment by wp_get_attachment_image() and either pass it to wp_insert_post() initially (will need to create attachment earlier for that) or use wp_update_post() to assign content to already existing post.
Given this I can’t use post meta I suppose this is a typo (my emphasis) setting a global meta key/value on the image is not OK It’s either a post meta or a site option. To use it as site option, use this in attachments_fields_to_edit: $is_profile_image = get_option( ‘_is_profile_image’ ); $checked = isset( $is_profile_image[ $post->ID … Read more
I’m not so sure I understand your question but if I were to guess, this might help: add_meta_box() Examples – WordPress Codex
Add Media + Quick Edit buttons not working
your theme needs to support Post Thumbnails to have the featured image meta box… Add this to your functions.php file: add_theme_support( ‘post-thumbnails’ ); See http://codex.wordpress.org/Function_Reference/add_theme_support#Post_Thumbnails