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

1
vote
0answers
36 views

How do you alter the default WordPress thumbnail?

I have selected 'thumbnail' under 'Apply changes to:', however, nothing seems to happen in either the media library or on the site. I've also tried regenerating the images after making changes, but ...
1
vote
0answers
71 views

Access to Media Library

Im trying to find a way to pull random images from either a post or wordpress's built in image library. Im not sure how to query image uris from a post or the media library - is there a tag or method ...
1
vote
1answer
119 views

Add attachment for all images in post

I want to move someone else's WordPress blog to a new server. I only have access to the exported XML file of the blog. When importing the XML with the Wordpress Importer plugin, everything went fine ...
0
votes
1answer
91 views

How to save media-form on custom tab

On my custom tab, I copied media-form from media_upload_gallery_form, only changed form id and action-url to reflect my tab's name. The form displayed as expected, but after click "Save All Changes", ...
5
votes
1answer
335 views

Limit Media Library to Given Folder

I have made a plugin that uses the Media Library to allow users to upload files to a specific directory - using the upload_dir filter. I would like to know if there is a way (i.e. a filter) I can use ...
5
votes
1answer
335 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, ...
0
votes
1answer
41 views

What if I have a large file on the server that I want the wp library to have?

I have one server that has wordpress in the root directory. However before I installed wordpress, I also have (root)/videos. I'm sure I can move this folder anywhere, however I want to move it to a ...
2
votes
1answer
2k views

How to enlarge thickbox media library iframe?

The iframe in thickbox media library is not big enough to display my custom tab. I tried to add "width=900&height=600" at the end of the link that pointing to the library, but no luck. How can I ...
1
vote
1answer
335 views

Making Media Library “Alternative Text” Field Required

I'm looking to make the "Alternative Text" field required in the Media Library, just like the "Title" field above it. Screenshot:
3
votes
3answers
1k views

How can I attach images to a post from the media library?

Currently, there is no way to do this in a vanilla Wordpress install. Is there a way to retroactively attach an image from the Library to a post? EDIT: Ah, let me clarify — when editing a post, and ...
4
votes
1answer
505 views

A better Media LIbrary Experience

I've spent a good amount of time reading through everyone's suggestions about better file management with the Media Library -- and at the end of the day, I haven't come across any clear winners at the ...
4
votes
1answer
495 views

What is the action hook for save media-form on gallery tab?

I want to save a meta data to post parent when the media-form on gallery tab is saved( The submission button is "Save All Changes"). Which action hook can I use?
0
votes
1answer
631 views

Can I remove an image from the Gallery without deleting it from the Media Library?

From what I've looked, I don't think is built-it. Is there a plugin that implements this feature or a workaround for this? Thanks
0
votes
2answers
69 views

Issue with images which have no sizes available

I noticed that, in older images uploads of mine, the sizes aren't properly available. The original files shows up but there aren't sizes linked to the image, and full size displays : "Full Size (0 x ...
0
votes
1answer
1k views

How to Add a Custom Colum on Thickbox Media Gallery Tab?

On searching for a solution, I found the following codes to add col on media page: add_filter ( "manage_upload_columns", 'upload_columns' ); add_action ( "manage_media_custom_column", ...
0
votes
1answer
270 views

How to modify the attachment info text on gallery tab or media page?

when show/edit an image/file, on the right side of the image/file, there are some text info-- File name, File Type, Upload date, Demention... How to modify those text?
1
vote
1answer
1k views

Remove fields on media uploader for custom page type - not working for “From Computer” or “From Url” tabs?

This code works for me if I go to upload a file and choose the Gallery or Media Library tabs then it correctly hides elements on the page. If I go to the From Computer or From URL tabs, nothing is ...
1
vote
1answer
2k views

Clean up wp-content/upload/ folder

Is there an (easy) way to check if all my images are in the database? I want to check my upload folder to see if each file has an 'attachment' record in the wp_posts table. I know of the extra images ...
0
votes
1answer
570 views

Attaching images to multiple galleries

I've been wondering about this image/gallery issue for ages. So, I've got some images: lifestyle1.jpg, lifestyle2.jpg, lifestyle3.jpg, lifestyle4.jpg, kids1.jpg, kids2.jpg, kids3.jpg, ...
1
vote
1answer
305 views

Media Library, hook on delete user action

I need to run my function when a user deletes a media file from the media library. Is there a hook I can use? Would appreciate it if someone could please point me to the right direction. Thanks!
1
vote
1answer
551 views

How to Removing fields from the Media Uploader/Gallery on a Custom Post Type Edit Page

This post shows how to remove unwanted fields from the media uploader. It works great, but I want to limit it to a custom-post-type and I can't seem to figure out how to do it. I've tried the ...
3
votes
2answers
3k views

Media library to list images only user uploaded

I want to list images for only user uploaded image. Here is the scenario: Using the image uploader on front end using iframe. I have added upload_files cap to subscriber level users and want them ...
3
votes
2answers
416 views

Add Image Dimensions to Media Library Tab on Media Upoader

I would like to add the dimensions of each image to the media library tab in the media uploader. I have a multi-author website, where I require users to add a featured image with minimum dimensions. ...
3
votes
4answers
3k views

What's the proper way to find and remove duplicate images from posts and the media library?

I just exported a largish WP blog from MediaTemple to PHPFog. I used the standard WordPress export and import plugins. For some unknown reason all of my media assets have been duplicated. I now have ...
3
votes
1answer
1k views

Use Media Library to manage galleries like Nextgen (with folders, albums, collections, tags, categories, terms…)

I'd wish to use WP 3.x standard Media Librery rather than relying on 3rd party plugins like NextGen no matter how well they're written. I just don't like duplicating functionalities. Media Librery ...
-1
votes
1answer
176 views

Media Custom Fields - get a value with PHP

How to get a value of a field set with Media Custom Fields (programmatically)?
0
votes
1answer
250 views

Media Library won't recognize SOME old files after move

First off, I'm on a Windows 2008 box running IIS7 with a web.config file not htaccess. That being said, I've migrated my old Apache(XAMPP) installed WPMS site over to a new IIS7 server successfully ...
7
votes
2answers
2k views

Give users a maximum upload capacity; limit the number of files a user can upload OR limit the number of files per upload

I'm using the Media Library on the front end of my website and I'd like to stop users from being able to spam my server by uploading an unlimited number of files. As such, I'd like to do one or maybe ...
5
votes
1answer
535 views

Change behavior of “Insert into Post” based on attachment metadata

For a custom plugin I'm working on, I have added a checkbox element to the attachments editor in a manner like the answer provided here: How to add a checkbox element to attachments editor with ...
0
votes
1answer
579 views

How to remove a tab in Media Upload page in wordpress

I use wp_enqueue_script('media-upload') show upload box,but i don't want show "Media Library" I use upload for frontend and don't want remove it on backend. Can you help me modify it Thanks I fixed ...
10
votes
5answers
3k views

Minimum Dimensions Requirement for Featured Image?

I am creating a baseball website with multiple Authors. From past experience, no matter how well you know someone personally, it doesn't mean they will follow or even read your instructions. That ...
0
votes
1answer
417 views

How to fetch only media that was already attached to a post/page?

Situation: my client has this simple gallery built with WP_Query showing the latest media added to the site: $cola = new WP_Query( array( 'post_type' => 'attachment', 'post_status' ...
0
votes
1answer
241 views

Is there any way to add images to the Media Library through a path on the server?

I have 3 folders with images that I want to add to my media library. I do not want to have them uploaded under the default path (i.e. uploads/year/month). I can upload them anywhere in the theme ...
0
votes
3answers
228 views

Add jQuery function to media button

I have added a custom button to the media actions in a custom theme, function wp_myplugin_media_button($context) { $wp_myplugin_media_button_image = ...
0
votes
2answers
31 views

Host Images from Link

Recently, I imported all my post from Blogger, so all the images showing in the post currently reside on Blogger's server. I want to import/put all those images to my server and automatically change ...
1
vote
1answer
1k views

“add from media library” tab is super slow [closed]

The add from media tab for wordpress is super slow on my local. It takes at least a full minute for the modal box to load content when I click that tab. I am guessing it is because I have 65 pages of ...
3
votes
2answers
1k views

How can I list URLs of all audio files within my media gallery?

I have a music player in my theme that generates its playlist from a javascript file that looks like this var myPlaylist = [ { mp3:'track url goes here', title:'title here', ...
1
vote
1answer
263 views

Upload multiple images and insert them into custom html code

Good evening. :) Well, my mother is currently using a wordpress installation for her day to day blogging. Often, a post consists of some text and a few images, which are displayed via the very nice ...
0
votes
1answer
677 views

Loop through all media library images and return those where caption contains the text carousel

Im new to Wordpress but I'm looking for a way to loop through all the images that have been uploaded to the media library and output the SRC, description and caption of the image when the caption ...
2
votes
2answers
639 views

Making the Add Media Link URL into a checkbox

Hopefully it's OK asking a second question pretty much directly after the first one... I'm currently having some difficulties accomplishing this: I've been able to remove the 'Attachment Post URL' ...
0
votes
1answer
266 views

How to add a download link to a movie from WP media library?

All, I'm creating a custom theme for WP and it has some pages that play videos from WP media library with an HTML5 player. I wanted to also have a link next to the player to allow the users to ...
0
votes
2answers
614 views

Fetching uploaded images using Link URL

I am trying to fetch the uploaded images using the link URL (The Link URL option is available in the Add Media when we upload/insert media) and display it on web. I have gone through the methods ...
1
vote
2answers
1k views

Add size in Gallery Settings in Media Library

I would like to add the size in the Gallery Settings in the Add Media. I know to add the in the front-end by editing the media.php. However, when I added the the lines in gallery.dev.js, they don't ...
1
vote
1answer
1k views

How to display a custom post type's media library inline on meta box

I am trying to create a post type which only displays the Media Library Inline. I have got the example from this : https://gist.github.com/897503 However, nothing happens when I click "Insert ...
3
votes
1answer
571 views

Custom post type thumbnail / Media Library WP_DEBUG notice [closed]

My custom post type thumbnail appears to be working correctly. However, when I return to edit one of my species profiles (in the Admin area, not talking about the front-end here), the following text ...
1
vote
1answer
1k views

How to order images in a post in Wordpress 3.3?

In wordpress 3.2 when uploading images to a post, I would get a Gallery that is linked to the post. That is, I could see in the media uploader of the post a tab that contains only the images of this ...
1
vote
1answer
581 views

Get attachments by user

Is there a way to get attachments by user? I need a way to display all the images uploaded by a specific user. (I probably need the attachment IDs so that I can use wp_get_attachment_url to display ...
1
vote
1answer
737 views

How to retrieve alt attribute for an attachment (uploaded image)?

I have some IDs of attachments (images, not from current post). How to I get the alt attribute for those images? I have tried to look into wp_get_attachment_image_src and wp_get_attachment_metadata ...
1
vote
1answer
78 views

User-friendly link to attached images for a certain post?

I have set up a slideshow running on the front page of my site that runs on images attached to a page called 'Home'. I would like to be able to adjust its contents and order from the admin area. And ...
2
votes
1answer
268 views

Is there a limit on the number of attachments?

It seems there's a limit on the number of attachments of a post? I have 265 images uploaded for one of the posts (yes, I know it's quite a few), and when I want to put them into order. The result: ...