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
3
votes
1answer
882 views
How to save attachment data?
So I have this plugin which associates images from the media upload modal to taxonomy terms via /wp-admin/edit-tags.php. The current version is in the branch named "button".
Basically, I've swapped ...
3
votes
2answers
363 views
add_image_size creating lots of images (of various sizes)
I wonder if its a good idea to use add_image_size or is it just a convinence feature. I say this as I think add_image_size creates images of various sizes regardless of what the usage if the image ...
3
votes
1answer
365 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 ...
3
votes
1answer
489 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 ...
2
votes
4answers
632 views
Is there a user-facing interface to edit an attachment's permalink?
If you use the [gallery] tag at all you know that permalinks for image attachments end up like blog.com/2011/03/18/post-permalink/attachment-permalink.
The URL extension from the post permalink ...
2
votes
3answers
1k 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 ...
2
votes
3answers
2k 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
4answers
2k views
Why can't I edit certain images from the WordPress Media library?
I've noticed some bizarre behaviour in my WordPress installation.
For some photos, when I click "Edit Image", the full image is not displayed to me - just the area visible in the thumbnail. And yet, ...
2
votes
2answers
3k views
Why is wp_get_attachment_image_src not working with my custom size (add_image_size)
I have added an image size with
add_image_size('gallery-thumb', 48, 48);
Why when I do
array_slice(wp_get_attachment_image_src($firstimg->ID, 'gallery-thumb'))
I get the link to the full ...
2
votes
2answers
505 views
How to register images uploaded via FTP in media library?
I'm using my own upload.php file to upload images to:
$upload_dir = wp_upload_dir();
$targetDir = $upload_dir['path'].'/';
It works like it should with this exception that images uploaded to ...
2
votes
2answers
2k views
How do I add media to a custom post type?
I want to add some custom fields to allow a user to select items from the Media library for the custom post (in the add/edit view)
Is there a way to do this?
2
votes
2answers
1k 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 ...
2
votes
1answer
2k views
How to upload images manually to wordpress?
I would like to know if it is possible to manually upload images to WordPress (ftp/scp) and make it recognize them and add them to the media browser. This also has to work with Wordpress running in ...
2
votes
1answer
77 views
Hide custom image sizes from media library
I want to hide a few custom image sizes from the media uploader:
The following code (posted here) works only for the default image sizes:
function remove_image_sizes($sizes) {
...
2
votes
1answer
2k views
Wordpress 3.0 Media Upload Directory
I am using Wordpress 3.0 and would like to organize the directory where uploads are made. Is there any way to change where the files get uploaded or is the only real organization the Media tag plugin?
...
2
votes
1answer
86 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
81 views
Checking if a file is already in the Media Library
I'm creating custom files in a plugin and adding them to the Media Library using the code provided in the Wordpress Codex for wp_insert_attachment. However, my plugin occasionally overwrites those ...
2
votes
1answer
43 views
can database and media folder be moved to a different drive?
I have to move my site from Drive C:\ to Drive E:\.
Is there a better way to do this than uninstalling the following:
Wordpress
PHP
MySQL
Apache
and re-installing on Drive E:\?
For example, how ...
2
votes
1answer
141 views
Adding a querystring to an image URL when clicking 'insert into post'?
I have written a plugin which does some fancy stuff with GD lib when you upload an image.
Everything is working fine, however I need to get the image title and add it to the image URL (and file name ...
2
votes
1answer
165 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: ...
2
votes
1answer
181 views
Best way to strip character entities (%20 etc)
I have a heap of images inside MovableType, on an old server. There are plenty which have character entities like %20 to represent spaces.
I've used some plugins to import the images and change the ...
2
votes
1answer
4k views
Function to get image from media library
Is it possible to retreive media image directly into the library... Something like get_media ('all') and it return a array with image url, caption, description etc etc..
2
votes
0answers
50 views
Hide upload image fields for the different media upload popups
I am trying to change a few of the options in the Set Featured Image popup in the Wordpress admin. I can't seem to find anything that determines if the popup window is a Featured Image or an Add Media ...
2
votes
1answer
35 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 ...
2
votes
0answers
80 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 ...
2
votes
1answer
68 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 ...
2
votes
2answers
53 views
How to have changes made in media library to be reflected on posts/pages
I have recently invested a bunch of hours updating the alt text of all the images in a media library, only to realise that the changes are not reflected on posts/pages.
Whoops!
Is there any way to ...
2
votes
2answers
509 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' ...
1
vote
2answers
448 views
How to get an image transferred via FTP or script to appear in Media Manager?
I've got a plugin that transfers some files over to the uploads folder of the site in which the plugin is installed.
It works fine, however, the images are not appearing in the Media Manager. I ...
1
vote
1answer
79 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 ...
1
vote
1answer
119 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 ...
1
vote
1answer
185 views
Is there a way to delete images from the Media Library programatically?
I did a custom user profile page for wordpress that lets you update your profile including uploading your custom avatar and save that photo to the Media Library. Is there a way for the a specific ...
1
vote
1answer
424 views
display image size in media library screen
i'm trying to add image size in media library screen so will be simply to handle images. Anyone does it before me?
Any help appreciated.
Francesco
1
vote
2answers
469 views
Can I attach an image to a different post?
Image galleries display those images that were uploaded to that post, by default. If I wanted to move an image to a different post, so it appeared there instead, would I have to delete and re-upload? ...
1
vote
1answer
30 views
Add Additional File Info (jpeg compression & file size) settings to Edit Images Screen
On the WordPress Edit Image Screen, I'd like to add a label to show the current compression level and byte file size of the image.
Any ideas how to tap into this screen and echo this data?
The ...
1
vote
1answer
212 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 ...
1
vote
1answer
390 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', ...
1
vote
2answers
98 views
How do I get allowed Media Library upload file extension list?
WordPress has list of allowed Media Library upload extensions in wp-includes/functions.php but is there any way to return them to theme's files as an array?
1
vote
2answers
306 views
How to Check Disk Space used by Media Library
Is there any way to find out how much of disk space has been used by Media Library?
My blog's media files stored in a separate folder named "media" rather than the default "wp-content/uploads".
...
1
vote
2answers
700 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
2answers
597 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
602 views
media_sideload_image file name?
I'm using media_sideload_image to download images from the web and store them. However, the problem is that the ones from youtube are always called "hqdefault.jpg", which means that it will override ...
1
vote
1answer
587 views
Warning: in_array() expects parameter 2 to be array, null given
On a freshly built site running version 3.1.3 with the twentyten theme active and no plugins, when I click on "Media" to go the media manager, I'm getting this error:
Warning: explode() expects ...
1
vote
2answers
2k views
Plugging into the Media Library to upload images (NOT associated with any post)
My Old Question:
I made a Theme with rotating banner,
common thing. So I want a way for
users to select images. I think
instead of implementing my own upload,
I think its better to allow ...
1
vote
1answer
77 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
76 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
2answers
139 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 ...
1
vote
1answer
99 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, ...
1
vote
1answer
82 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
453 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 ...
