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
1answer
318 views

Group images in media library

I'm looking for a method to group images in the media library. I'm developing a photo portfolio site. I have uploaded all the images to the media library I need a way to group the images to make them ...
1
vote
3answers
3k views

Import Images from one self-hosted WordPress install to another

I am redeveloping a client's site and, for a number of reasons, in the process changing hosts. I'm developing it on the new host and to get the site orgainised I have attempted to import all the pages ...
1
vote
1answer
112 views

Media Uploader in custom path

I am creating a CSS generator in my WordPress theme and I want to be able to save custom skins with images as well. My problem is that I have a hierarchy like /skins/custom-skin/images for the ...
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
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 ...
1
vote
1answer
598 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
2k views

Gel all image from certain post type

I've found similar questions here, however I can't modify the answers to get images only from a certain post type - as the post type in those examples are "attachment" and not the name of a custom ...
1
vote
1answer
854 views

Custom “Insert into Post” button

I am trying to make a simple plugin that sets a background image. I have it linked to the media library so that when you click "Insert into Post" it does a custom function. However, obviously this ...
1
vote
1answer
4k views

Any way to change the actual filename of an image from media manager?

The default WP media manager does not appear to offer the ability to change an image's filename. Are there any plugins available that allow this functionality?
1
vote
1answer
55 views

Post slugs and images cannot have same name?

If I go to Media Library and upload an image called apple-pie.jpg And then I create a post called www.domain.com/apple-pie/ The link does NOT take me to the post. Instead the link will take me to a ...
1
vote
2answers
37 views

Allow only attachment uploaded to current post

The "Add Media" button allows any media to be added to current editor. I need the "Uploaded to this page" from the dropdown menu to be the only option available. Some time ago I found a solution ...
1
vote
1answer
141 views

How to get media objects

I am busy with a loop to return all media in the medialibrary in objects. I figured out how to get the images ( with wp_get_attachment_image('$mediaID') where the $mediaID is the id of the image ) ...
1
vote
1answer
80 views

Media gallery: remove “insert into post” button keeping “Insert gallery” button

In my project (wordpress 3.7.1) contributor users can upload media file, but I want to force them to insert only gallery in post, not single images. Using Capability Manager Enhanced plugin I gave ...
1
vote
1answer
679 views

How to get the image url in the input box from media library?

I have added a post meta to upload image using wordpress media uploader. Looks like it's a javascript work. I am no good in javascript. I took the js from here: Here is the js code: ...
1
vote
1answer
4k views

Add metabox with media uploader in a custom post type [duplicate]

I need to create a "media uploader metabox" and add it to my custom post type. I've already create normal metaboxes, the function to add to the custom post type and the function to save them, I only ...
1
vote
1answer
414 views

Hide Default Video Shortcode Controls on PageLoad

In wordpress 3.6+ when we use default video shortcode [video], controls of video are always visible on pageload. How can we hide these controls on page load and show only when we hover over the video ...
1
vote
2answers
581 views

Remove the 'Attachment Details' section of the wordpress media manager

I'm using the new WP media manager for a branding plugin (well, new from 3.5), and it is working well. My only issue is that I have an 'Attachment Details' area on the right, allowing users to edit, ...
1
vote
2answers
444 views

Media Content disapeared after upgrade WP core to 3.5.1

my Media -->Library content disappeared from the dashboard, but I still can see it inside my actual site folder. Could anyone instruct me how to fix it? Thank You
1
vote
2answers
238 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 ...
1
vote
2answers
1k 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 ...
1
vote
1answer
580 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 ...
1
vote
1answer
131 views

Large Media Library

I'm looking to organize a large WordPress Movies/Actors site, with thousands of posters, screenshots, etc... I currently have the images in a directory structure like ...
1
vote
2answers
236 views

Unable to create or edit menus

I'm running 3.4.2 on Ubuntu. I'm unable to make any changes to menus at all. Also I'm unable to upload anything (flash or browser uploader) to the media library. However plugins have no problem adding ...
1
vote
1answer
487 views

mp3 audio metadata upload integration: can I autopopulate title, caption, description from id3 tags?

I'm using the native Wordpress.org Upload New Media subsystem pretty routinely to upload MP3 files. The MP3 file workflow we use populates the ID3 tags with some important user-friendly metadata. It ...
1
vote
1answer
79 views

Where does the gallery shortcode gets its attachments from?

I know that media are an attachment post type that are children to a post, but how are galleries stored in WordPress?
1
vote
1answer
394 views

Image Uploader API

I want to create a widget for my theme that will let me upload an image to WP and crop it to a certain size. Can anyone point me to the codex page or a tutorial on how to a bare bone implementation of ...
1
vote
1answer
342 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:
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 ...
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
80 views

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

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 ...
1
vote
1answer
548 views

change video icons to selected thumbnail?

added custom fields for the media edit form so users can select a thumbnail for video. All that's working fine but how can i get the default video icon on this page and in the media library to use ...
1
vote
3answers
1k views

Control attachments menu order with jQuery Sortable

I've managed create a metabox that lets me upload and then fetch the images and then also been able to add jquery ui sortable to be able to sort the images, however I've no idea how to add actual ...
1
vote
1answer
605 views

How do I modify the “Insert Media” lightbox in the admin to only show media items from a category?

I am attempting to resolve a problem I continue to have with the media library. Essentially, what I am looking to do is "automatically" assign media which is uploaded from a custom post type "edit ...
1
vote
2answers
302 views

How can I view all WP generated thumbnails in Media Manager?

When WP creates thumbnails from the original uploaded image, they are hidden from view inside the Media Manager listing. Can they be made visible, via some filter or action so that you can selectively ...
1
vote
1answer
3k views

I'm using add_meta_box() but want to include TinyMCE editor *and* Media Uploads for each box

I'm using a very lightweight plugin called WPAlchemy that lets me rapidly create meta-boxes for posts and pages. I've ben able to convert <textarea>'s into rich, TinyMCE's editors just fine. ...
1
vote
0answers
15 views

Rendering the uploaded file in a wp.media object

I have seen this question asked a few times on SO and I don't see any responses. I have a wp.media object (upload dialog), that I am using in to store an upload to a post as a meta element. It works ...
1
vote
0answers
9 views

Images uploaded to the media library has strange colors. However, in the edit screen the color is ok

This is a strange issue that I've never encountered before. When I upload this image to WordPress' media library, it comes out like this (image on the left): This is also how the image appears on ...
1
vote
0answers
53 views

Modify how gallery.js builds the shortcode [gallery …] in tinyMCE?

The post editor helpfully removes default arguments like columns="3" from the [gallery] shortcode. How do you tell it to remove a custom attribute that has a default value? The answer at Enhance ...
1
vote
0answers
102 views

How to run custom JavaScript code on gallery attachment image selection

On line 4620 of media.views.js is this: media.view.Attachment = media.View.extend({ ..... select: function( model, collection ) { ..... I would like to add some more features to this ...
1
vote
0answers
78 views

Images are registered in media library but still won't show up

I'm working on creating a copy of a wordpress site on a separate domain hosted on the same server as the original. I created the new database with the correct domain and everything is working properly ...
1
vote
0answers
28 views

Change Media Library thumbnails for non-image files to include the post title instead of the filename?

We are migrating an outdated custom CMS to Wordpress and all of the files have a corresponding title which is great, but Wordpress chose to show the filename, by default, in the grid view, which ...
1
vote
1answer
77 views

wordpress media library shows empty images

I have copied the my old site files and moving those into new site. i have changed the url in db, and uploaded the files in new server. everything works fine except the media show black images .can ...
1
vote
1answer
85 views

Edit Image/Image Details - Replace button missing

I have a strange problem. I am dynamically populating content into Wordpress' tinyMCE editor. Part of this content is a placeholder image, that the user can then replace. The issue is when I click the ...
1
vote
1answer
23 views

Choosing images size when uploading

Is there a way to choose which image size I want to resize to when uploading? I need one image type to be for a featured image (resizing would be for thumbnail size and 900x350) and the other type ...
1
vote
0answers
72 views

How to upload files with Media File Manager Advanced? [closed]

On my Wordpress I installed a plugin: http://wordpress.org/plugins/media-file-manager-advanced/. I wanted to upload some *.html files into my blog using this plugin by dragging and dropping them. But ...
1
vote
0answers
176 views

Users can't upload images on frontend if they haven't got access to the wp backend

I let users create posts and upload/attach images to that post via the frontend. This works fine. However, when I restrict the access to the Wordpress backend (/wp-admin/) via a code snippet like this ...
1
vote
0answers
75 views

Multisite: use media from one site vs. copying the same media to all language sites?

This is a business site with product images. I have a multisite installation with 3 languages in 3 directories which will later be mapped to completely separate domains by the host when it's ...
1
vote
1answer
86 views

Alter image meta fields in the Media Library

To improve user experience, I want to make changes to the image meta fields in the Media Library: As demonstrated above, I want to change the Caption field to Source and remove the Alt Text and ...
1
vote
1answer
123 views

Media Manager (since 3.5): How to show an empty Media Library when creating a media frame?

Is there a way to make sure the "Media Library" tab does not show any images until I start uploading some in the "Upload Files" tab? I am creating a wp.media frame with the following code: var ...
1
vote
1answer
37 views

How to create media library for each user?

In my project there are three types of users, teacher, student, and admin. Each user has the provision to add posts. But my problem is that each user need each media library for add images into post. ...