The media tag has no wiki summary.
18
votes
4answers
2k views
Add a menu item to Wordpress 3.5 Media Manager
How can add a new menu item underneath the "insert From URL" on the left sidebar in the new Wordpress 3.5 Media Manager?
I've been looking at the backbone js and tried my hand at hooking into it with ...
15
votes
8answers
5k views
Restricting Users to View Only Media Library Items They Have Uploaded?
I want users to be able to upload photos using add_cap('upload_files') but in their profile page, the Media Library shows every image that's been uploaded. How can I filter that so that they can only ...
15
votes
2answers
2k views
How to manage attachment relationships for specific posts in WP 3.5+
In WordPress 3.5, media management has changed entirely. Also, relating attachments to specific posts is (I believe) basically only being done for backward compatibility. Therefore, after uploading ...
12
votes
2answers
4k views
How to Protect Uploads, if User is not Logged In?
I use wordpress for a private site where users upload files.
I use the "Private WordPress" to prevent access in to the site if the user is not logged in.
I would like to do the same to the files ...
11
votes
2answers
555 views
How to make a image-size selected by default in Media upload - WP v3.5
Bare with me. I want to have a custom image size selected by default in the Media upload popup page. In Wordpress v3.4.2 and prior, this elegant code worked fine:
function ...
10
votes
2answers
441 views
Enhance Media Manager for Gallery
I would like to enhance the Media Editor, after WordPress 3.5, on the gallery view.
I want to add a new select field on the right side and send the selected values to the gallery shortcode.
I ...
9
votes
4answers
3k views
Cleanup uploads folder, Media Library db structure
I am doing an upgrade and cleanup of an old blog that started on Blogger.com, then moved to self-hosted WordPress 2.1, 2.3 and now 3.0. Images in the posts are scattered around: most of them are in ...
9
votes
2answers
320 views
How can you set maximum width for original images?
Case:
I have a client that doesn't know much about the digital world. However what she does know is how to get the photo's from her camera on to the computer and in WordPress. However she doesn't know ...
8
votes
1answer
145 views
ZIP up all images displayed in a [gallery] and offer as download link
I would like to offer my visitors the option to download the entire photo gallery (displayed on dedicated [gallery] pages) as a ZIP file displayed at the bottom of each gallery page. - The full-sized ...
7
votes
1answer
838 views
WordPress 3.5: Switch back to Old Media Uploader?
Is there any way to switch back to the old media uploader in WordPress 3.5? The new one is very slow for me, as I have thousands and thousands of images across my site, and I have a few plugins that ...
7
votes
3answers
335 views
How Can I Add the “Insert From URL” Tab to a Custom 3.5 Media Uploader?
I've inserted a WP 3.5 media uploader into a widget by running this JavaScript when a button is clicked on:
var frame = wp.media( {
title : 'Widget Uploader',
multiple : false,
...
7
votes
1answer
645 views
Custom post type with a forced fixed aspect ratio image crop
What I am looking for is similar to a couple other questions. The links are:
Creating an Image-Centric Custom Post Type?
Using Default WordPress Custom Header Image Crop Feature in a Post Type / ...
6
votes
1answer
824 views
What plugin can I use to create a list / slideshow of featured images?
I'm looking for a plugin that will allow the user to upload files, maybe 4-10 that can be used on the homepage as part of a slideshow. I can code the slideshow part myself, if necessary, but the thing ...
6
votes
1answer
93 views
How to make “Upload files”selected by default in Insert Media?
I am frustrated having to click on the "Upload Files" constantly instead of the first choice being Upload Files in posts editor....How can i make “Upload files” selected by default instead of "Media ...
6
votes
1answer
3k views
Adding Category/Tag/Taxonomy Support to Images/Media
I've been trying to add category, tag, or custom taxonomy support to images (or all media, though I'm only concerned with Images). I've got it part-way figured out with:
add_action('init', ...
6
votes
1answer
1k views
Display Media Uploader in Own Plugin on Wordpress 3.5
I have little problem with Media Uploader in new WordPress 3.5. I created own plugin which is upload the picture. I'm using this code JS:
<script type="text/javascript">
var file_frame;
...
6
votes
1answer
807 views
Set media upload attachment link to none and hide it in WP v3.5
In the Media upload popup page, how do I set the attachment link to none and hide it in Wordpress version 3.5? The following filter worked fine in earlier versions of WP:
function ...
6
votes
2answers
161 views
Use a separate custom table (not posts) to handle file upload data
The Problem:
Website that has over 100 photos per post. Could possibly swell posts-table beyond 100K entries within a few years.
The Dilemma:
Would much rather stick to default WP UI for handling ...
5
votes
3answers
794 views
Media Upload Folder - how to manage
Situation :
When uploading an image via the media uploader, WP automatically makes at least 3 additional sizes, that comes to 4 images including the original one. Most of the time, the images will be ...
5
votes
3answers
936 views
How can you change the 'Insert into Post' title in the media button?
Actualy the question says it all. I integrated a media upload box to my admin page and a button with the text 'Insert into post' makes no sense. I rather like to change it to something like 'Use this ...
5
votes
2answers
708 views
How it is possible to use taxonomies on attachments?
With WordPress 3.5 was changed the media management and edit screen use the default of edit post type UI. The taxonomies is very usefull for WP installs, there have different users and attachment to ...
5
votes
2answers
798 views
Remove “Insert from URL” link in Media upload - WP 3.5
How do I remove the Insert from URL link in the new Wordpress 3.5 Add Media popup page? In earlier versions of Wordpress, this worked fine:
// removes URL tab in image upload for post
function ...
5
votes
1answer
2k views
Put the media uploader in a metabox
I find it very unnecessary to have an "add image" button that brings me to yet another screen that will let me upload content to my post.
Ideally I would like to have a meta box with the option to ...
5
votes
1answer
96 views
Which filters or actions to use after a media upload and delete?
When a media (image) is uploaded and the subsequent images are created (all the different sizes), I would like to perform a few actions. It is simple and I basically need only the new attachment ID, ...
5
votes
1answer
109 views
what happens to existing media files when I switch to year/month directory structure format?
A site has thousands of images in the uploads folder. ISP has threatened to shut it down because it is about to exceed server limits for the max number of files in one directory.
I looked at the ...
5
votes
2answers
973 views
Expanding new Media Uploader in WordPress 3.5
In current version of WordPress it is quite easy to expand the attachments fields using attachment_fields_to_edit filter, but in latest WordPress 3.5 RC2 it's not working. We can expand it using ...
5
votes
2answers
886 views
Any plugin out there that uses WP's internal image uploader?
I'm trying to use the media uploader thing from WP (the form from the pop-up with crunching and all that), and can't figure out how.
Is there any plugin out there that uses it? It would be easier to ...
5
votes
1answer
224 views
Display attachments by ID in a wp.media frame
I'm trying to use the new wp.media uploader frame for an app I'm building. I've read up a lot on other questions, blog posts, etc etc.
The code I pasted below is working already quite fine and even ...
5
votes
1answer
677 views
What's the easiest way to close comments on media/attachments?
I consistently get spam attempts on various and sundry media attachments on my primary WP blog. By default, media has open comments (for instance, ...
5
votes
2answers
3k views
Possible to “Attach” images to multiple posts without inserting or uploading twice?
How can I attach images to a post which have already been attached to other posts without having to upload them twice?
I don't want to insert the images into the post, I simply want to attach the ...
5
votes
2answers
112 views
How do I use the WP image functions in a page template?
Wordpress has tons of mature code for image editing on the admin side, but I would like to provide a form inside of a custom page template for my visitors to drag and drop, crop and save a thumbnail ...
5
votes
3answers
755 views
Replace audio/video enclosure with player?
Current state: I'm parsing XML feeds into the front end and/or the back end (Admin UI), but not into the DB.
Inside those feeds i place mp3- and video content, currently only as plain text (no link, ...
5
votes
5answers
767 views
Upload images to remote server
I am using Wordpress media uploader to upload images and I was wondering if there is a way to make it upload to my remote server instead of my local server? Example: My wordpress blog is hosted on ...
4
votes
5answers
6k views
How to increase the file size limit for media uploads?
How can I change the Maximum upload file size? I would like to be able to upload 10Mb at a time.
4
votes
1answer
677 views
Changing the media library default tab
When adding media to the post from Media Library, an iframe that opens in a popup has these tabs:
From Computer
From URL
Media Library
From Computer is currently the default, but I almost ...
4
votes
1answer
499 views
Using one media library for a multisite network with Wordpress 3.5 media library
I'm currently looking to modify Wordpress so that it always uses the primary site for images. I am achieving this using:
function use_main_blog_library()
{
echo "<script>alert('is ...
4
votes
3answers
908 views
Attach Files Metabox
Does anyone happen to know how to create a simple "attach/browse" button that can be placed into a metabox which upon clicking it would open a lightbox where the user would be able to view all the ...
4
votes
1answer
153 views
Decrease file size upload in Media
By default, I have a 2m limit of uploads. I want to decrease this number. I found out that this code:
function custom_file_max_upload_size( $file ) {
$size = $file['size'];
if ( $size > ...
4
votes
7answers
882 views
Publishing presentations in WordPress?
I'm looking for a solution that would enable me to publish a presentation inside WordPress.
I do not want to attach a PPT file or embed a Flash plugin for that, I'm looking for a HTML solution.
I ...
4
votes
1answer
221 views
Wordpress Media Manager 3.5 - default link to
Media Manager once again.
This time I'm looking for a simple hack/hook/filter to change default "Attachment Display Settings" from media manager. The option is "Link To" that is default set to "Media ...
4
votes
1answer
260 views
wp_editor with media buttons
I use wp_editor() on the frontend. media_buttons are displayed on default if visitor is logged in. I want to display these media buttons whether user is logged in or not. Is there any way to achieve ...
4
votes
2answers
380 views
How to manage a standalone media folder?
Managing my Wordpress installation with Git is great. I get to deploy fixes via command line (with Capistrano), easy rollback plan, the Theme folder is a standalone project added as a submodule -- ...
4
votes
0answers
238 views
How to extend LINK TO functionality in ATTACHMENT DISPLAY SETTINGS
In WP 3.4.x and earlier, it was possible to add a button to the media manager by messing around in an attachment_fields_to_edit filter. For example, a plugin could, when it figured out that an item ...
4
votes
0answers
1k views
Best plugin to manage media library? [closed]
I'm finding the media section of WordPress a bit hard to manage with it's paginated pages. Is there any plugin that helps display all the files differently? Like more images on one page and perhaps ...
3
votes
4answers
746 views
Wordpress 3.5 Media Manager - add a button
In my plugin, I would like to add two buttons to Media Manager (to the left of "Insert Into Post" in "media-toolbar-primary" section), and connect a jQuery action to it.
First one - The "Select All" ...
3
votes
2answers
3k views
Creating a metabox to upload multiple images, Ignoring The Featured Image
My question is basically identical to this other question here, however my question is still slightly different. I basically have a custom post type called "Packages" each package can have a slideshow ...
3
votes
3answers
2k views
Resizing all images
I have just changed the theme on my blog, and because of a small page width, it breaks the layout. Most of my earlier images (attached in posts) are around 600px in width, and now I need to resize all ...
3
votes
2answers
968 views
How to hide media uploads by other users in the Media menu?
Simply put - how might I completely hide media files uploaded by any other users other then themselves? Id like to disable access to these links & files since they are a way for non-admin users to ...
3
votes
2answers
253 views
Adding a custom image upload size and making it selected by default?
How can I add a custom image upload size with a width of 550px and make it selected by default in the Add Media page?
Currently, there are 4 sizes available: Thumbnail, Medium, Large and Full Size. ...
3
votes
2answers
259 views
PHP/Manual use of images? - 2 Questions
I've made a quick PHP script/page that uses the wp_insert_post() function to insert a post directly. And this works great. The post I am manually adding has an image in it, so I firstly ...

