Media Library is a WordPress panel that display all files you've sent. There you can add ne files, attach files to posts and pages etc

learn more… | top users | synonyms

0
votes
1answer
178 views

High CPU load when loading images in media library

I notice it uses high cpu when I load images from my media library. I have about over 1 million images uploaded and they are organized into folders by Post ID. Any tips to reducing CPU?
4
votes
1answer
300 views

Way to force media uploader use custom image size

I've implemented media uploader to my custom category image plugin and was wondering can I somehow force it use my custom image size I've set only for categories. ... So in screen shot above, I'd ...
5
votes
2answers
2k views

How to restrict images in v3.5 Media Library modal to only those from a specific post id?

How can someone restrict the images which appear in the v3.5 Media Library modal to only show those that are attached to a specific post id? I'm creating a front-end management template that allows ...
0
votes
1answer
102 views

Problem uploading files, after changing domain name

I just changed my WordPress website domain name (on the same server). Everything works fine, and the paths are correct. I can install plugins and updates without any problem. However, I can only ...
0
votes
1answer
65 views

What happened to the media manger?

Since WP 3.5 (right?), the media manager has been "streamlined" and images are no longer, as I can see it, ordered by year / month in the media manager, although they are still saved as before. Is ...
2
votes
1answer
611 views

Import media to online WordPress from local development

I have a site being developed locally and I want to import the contents to an online installation. I used wordpress "import" but it cant get the media files. Is there any "wordpress" was of doing this ...
5
votes
2answers
896 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 ...
1
vote
1answer
274 views

Show how many images are attached to a post/page on compose page

On the front-end, I'm using a query to show all attachments attached to the current post. However, on the compose page, there's no way for a user to see how many images are attached without opening up ...
1
vote
1answer
183 views

How can I autopopulate titles in the media library?

I have hundreds of images in my media library, most have which have no titles. In the media library, the "(no title)" message is displayed along these images. Since I generally have one image per ...
1
vote
1answer
568 views

3.5 Media Manager - callout in metaboxes

Two ways of doing the same thing: First one: var _custom_media = true, _orig_send_attachment = wp.media.editor.send.attachment; $('.media-upload-button').click(function(e) { var ...
0
votes
1answer
378 views

Remove (Unattached) Attach from “Uploaded to” in Media Library

I've already removed the Unattached link through functions.php, the last thing I need now is to remove the (Unattached) Attach from "Uploaded to" in Media Library. I've no clue about what code should ...
0
votes
1answer
206 views

remove_menu_page breaks “Add media”

Using the the remove_menu_page function results in a really strange bug. By adding the code below in the functions.php file the integrated "Add media" widget starts to bug. function ...
-1
votes
2answers
223 views

Remote Image (from URL) as Media Library element

I have slow upload on my wordpress server and I want to export two very big image to external server. So I need Media Library Image to use in other component. I cant edit URL of Image. Is any plugin ...
1
vote
2answers
787 views

Add file name column to media library

I've migrated hosts for a WordPress site, and a lot of my images have the same title. I am trying to pinpoint one media file by the file name, but file name is not a column listed in Media Library. ...
0
votes
1answer
170 views

Image uploaded in media library, can only see it when I using the WP Edit Image feature. 404 when trying to view in browser

I have an image that I've uploaded through the WP media library. I can see this image in my uploads folder via ssh/ftp. I cannot see this image if I put the URL in my browser, like ...
2
votes
1answer
959 views

Saving Custom Field in Attachment Window in WordPress 3.5

I'm using the code below to add a custom text field in WP 3.5 Attachment Window (from this question # Expanding new Media Uploader in WordPress 3.5) ... add_filter( 'attachment_fields_to_edit', ...
2
votes
1answer
73 views

Display latest 12 images from media library

I was looking for almost a week for such solution - without success. What I want to achieve is have a kind of 'photos cloud' on my wordpress homepage. What I need to do is to display latest 12 photos ...
0
votes
2answers
580 views

Insert wp gallery shortcode into custom textarea

Is there a way to insert wp gallery shortcode into custom metabox textarea ? I would like to have something like this: New metabox in post/page with textarea and below textarea there are a button to ...
2
votes
1answer
230 views

WP3.5 Media Uploader - how to make it accept multiple images?

I'm wondering how to make WP3.5 media uploader return 2 or more items in attachement? It always runs once even if 2 items are selected. The code: $('.button').on('click', function(){ var ...
4
votes
1answer
2k views

How to call WP3.5 Media Library manager?

In the past Media Library window could be called like this: tb_show("Upload image", "media-upload.php?type=image&TB_iframe=1&width=640&height=520"); This still works in WP3.5. But I'm ...
2
votes
1answer
195 views

Delete all associated media when custom post type removed

Basically I have so many images associated with custom post type that I need to be able to safely delete all related media on removal from trash. Is there a safe way of doing this?
2
votes
1answer
126 views

“Insert Into Post” For Custom Button

I'm in the process of trying to build a improved media library for our contributors. I have set up a custom taxonomy category for media, and set up a tab in the Add Media popup box for browsing ...
1
vote
2answers
218 views

How to change the image size in new Media Uploader (ie use medium vs thumbnail)

Is it possible to change the image size of the thumbnails in the new media uploader? For example images are currently displayed using the "thumbnail" image crop size and I would like them to be the ...
0
votes
0answers
33 views

Making epub, pdf, mobi formats available in a post? [duplicate]

Possible Duplicate: how to upload and allow downloads of .mobi and .epub formats I am considering the feasibility of converting a client site from a large number of hand-built web pages to ...
0
votes
1answer
433 views

add_image_size is not generatin images of correct dimensions

I am trying my hands with WP add_image_size method and this is the entry in my theme's function.php if ( function_exists( 'add_theme_support' ) ) { add_theme_support( 'post-thumbnails' ); ...
0
votes
3answers
431 views

Custom Attachment Type

I want to create a "photography" custom post type which uses attachment's same edit/upload panel. Exact same panels usage for "attachment" post type but with "photography" name. Is it possible?
6
votes
5answers
2k 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" ...
1
vote
1answer
932 views

Hide editor while keeping add media button in custom post type

How do I remove Editor in custom post type keeping the Add media button. When I used as following in custom post type declaration, it removes the Add Media button and I don't need editor in my post ...
0
votes
2answers
129 views

How to change format of file link (<a url=“file_link”> Name </a>) when insert from media uploder

I want change some default wordpress functionality. From Media library when we select a file and press "Insert into page" (other than image file) It inserts in format <a url="file_link"> Name ...
12
votes
2answers
842 views

Trigger refresh for new media manager in 3.5

I'm trying to figure out how it's possible to 'refresh' the media library in the new media dialogue in 3.5. I'm adding images from an external image library to the WordPress library (via a tab/iFrame ...
0
votes
1answer
208 views

Conditional tag to determine if the user is viewing the Add Media (after clicking Add media button)

Is there a WordPress conditional tag for checking if the user is viewing the add media popup after clicking the Add media button? If none, is there an alternative function that can be used? Thanks ...
0
votes
3answers
593 views

Prevent other editors from viewing images of other editors in Add Media Popup

Hi I have this code in my functions.php and its working well when the editor is viewing the Media library: http://example.com/wp-admin/upload.php add_action('pre_get_posts','users_own_attachments'); ...
7
votes
2answers
10k views

WordPress 3.5: Setting custom “full URL path to files” in the Media Library?

As the recent changes in WordPress 3.5 removed the "full URL path to files" option from media library I am wondering how to set this option to a custom path now? I need to set my "full URL path to ...
2
votes
1answer
210 views

Remove the columns in media library

How can i disable/remove the columns for Media Library? I want for author and comments column. Thanks in advance.
1
vote
2answers
434 views

Taxonomies for Wordpress Media Library [duplicate]

Possible Duplicate: How it is possible to use taxonomies on attachments? I know this has been a long debated issue with WP, but I was hoping that since the 3.5 upgrade, there has been some ...
0
votes
2answers
938 views

categories on attachment page

I am using this function to display categories specified to a post having gallery on the image attachment page. <p>CATEGORY: <?php the_category(', '); ?></p> The problem is that ...
1
vote
1answer
441 views

Is it possible to insert images directly from the server?

I've uploaded images directly to my WordPress server through FTP. I want to add these images to a post, so right now I'm using the Add from Server plugin that allows me to browse images on the server ...
22
votes
4answers
4k 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 ...
1
vote
0answers
131 views

Pages redirected to attachment post

THE SETUP I'm using WordPress 3.4.2 with Magic Fields 2 plugin. Using MagicFields2, I've added a custom field to the builtin 'page' post type. This field is called 'section_header' (which is ...
2
votes
2answers
519 views

How to track hits of a single media file?

I have multiple media files in my WordPress Media Library. Icons, Images, PDF's and the like. I would like to have a stat counter, that gives me a statistic of the downloads/hits of those files, ...
2
votes
2answers
2k views

How can I hide media library images from general users?

As an admin I really like the features and functionality of the WordPress 3.5 media manager. With a multi-user site however all users can see all images in the media library - whether uploaded by ...
0
votes
1answer
237 views

Media library and posts list problems with Wordpress on IIS

I have Wordpress 3.5 installed on IIS7 and I'm using SQL Server instead of MySql. Some strange "glitches" occur and I think their related to the same problem. I cannot see media library items on ...
0
votes
1answer
133 views

Remove image in post when it's removed in media library

As the title says, I want to automatically remove a specific image in all posts where it's used when I remove the image from the media library. Because at the moment, if I remove an image from the ...
6
votes
2answers
2k views

Wordpress 3.5 attachment_fields_to_edit and media_send_to_editor

In previous version i set a new check field into the media window with a simple code function ab_prettyphoto_attachment_fields_to_edit( $form_fields, $post ) { $my_form_fields = array( ...
7
votes
2answers
1k 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 ...
4
votes
1answer
484 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 ...
1
vote
1answer
507 views

WP doesn't remove uploads from folder when removed from “Media Library”?

I'm wondering why WordPress doesn't remove uploads from folder when removed from "Media Library"? I set limit to 5mb on WPMU but even if user removes everything from "Media Library" he can't upload ...
20
votes
5answers
7k views

Change the default-view of Media Library in 3.5?

When inserting media into a post, is there a way to change the default-view of the Media-Library from "All media items" to "Uploaded to this post"? There is another thread where this question was ...
0
votes
1answer
75 views

Automatically adding images to a certain page through the Media Uploader

I have a plugin that calls the Media Uploader to allow users to add images to a Page. The uploader is being displayed and taking images fine, but it is not attaching them to Page ID 65 as I wish (or ...
1
vote
0answers
41 views

Make change in media library affect images in published articles

Is there any way/plugin to make wordpress change the description/alt text/caption of an image used in already written articles if I change any of those texts of that specific image in the media ...