Media attachment pages giving 404’s
Media attachment pages giving 404’s
Media attachment pages giving 404’s
It’s not a pretty solution but I used the post__in attribute for this once in a custom plugin. Basically you usually define an array of attachment id’s to show in the media library. library: { type: ‘image’, post__in:[23,25,26] // or a javascript variable that contained the array of id’s } My code was originally built … Read more
Retrieving Meta from Image Attachment
Custom RSS Feeds & Post Meta Data
Attach media to post by media category
Found the answer: $categories = get_terms( ‘category’, array(‘hide_empty’ => false) );
What is the need to remove the full size images? Are you dealing with storage space? If not, why give yourself the headache? Just let the full size images stay where they are. You don’t have to use them. You’ll probably find a situation where you want to use it anyways. Also, I’ve never tried … Read more
You can try with this: function remove_media_tabs($strings) { unset($strings[“insertFromUrlTitle”]); unset($strings[“setFeaturedImageTitle”]); unset($strings[“createGalleryTitle”]); unset($strings[“uploadFilesTitle”]); return $strings; } add_filter(‘media_view_strings’,’remove_media_tabs’); This will remove ‘Upload file’ and ‘Insert from URL’ links when you open insert media screen, so user will be able only to select images or whatever that is already in media library. For more things you can do … Read more
Depending on the number of images, its probably a good idea to manually download them and run a batch script in photoshop to resize them all. Then re-upload them copying over the files in use. This plugin, Regenerate Thumbnails, may also help
Post and featured image have the same name, why is the attachment (image) is showing and not the post?