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
9
votes
4answers
1k views
Unwanted media library URLs in posts?
When doing a bit of Google searching for content on our blog, I noticed to my shock and horror that individual images from the Media Library are somehow generating their own URLs that Google is ...
0
votes
2answers
835 views
How do I remove the entire Media section from the main WordPress navigation without just hiding it?
I would like to remove the entire "Media" section from the main WordPress admin navigation ont he left hand side. What I don't want to do is just "hide" it with CSS or a plugin/function like I have ...
0
votes
1answer
177 views
All images on one line for each post
Having trouble getting around the issue where my client wants all of the images for each post to be on one line. This can be done in the editor, but they are not very tech savvy -- just wants to be ...
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 ...
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
3answers
861 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 ...
5
votes
2answers
2k views
Using the WordPress Media Library and returning the Attachment ID rather than URL?
I'm currently using some JS to pop open the WordPress Media Library in a thickbox container and return the URL of a selected image, then display it.
window.send_to_editor = function(html) {
...
4
votes
0answers
226 views
Filter pictures in the media library [closed]
I have some issues with duplicated pictures in my media library and I would like to know if there is any option to show or automatically filter only certain images in the library.
For instance, let's ...
0
votes
5answers
749 views
Errors in Add Image Popup, Media Library Tab: “in_array() expects parameter 2 to be array, null given in wp-includes/query.php”
I am getting errors like
Warning: explode() expects parameter 2 to be string, array given in /data/www/ae/wp-includes/query.php on line 2390
Warning: in_array() expects parameter 2 to be array, null ...
3
votes
3answers
312 views
Downloadable Documents
I have Press Release Section on my page where i would like to be able to add documents pdf, ms doc's etc.
Every time when i add new document to a post I would like download button to appear so user ...
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 ...
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 ...
0
votes
1answer
938 views
Restrict file uploads by extension?
Is there a way in WordPress 3.1 to restrict allowed file uploads by extension (images only) and file size?
Bonus question: Can I limit users to only be able view files they have uploaded themselves?
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?
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 ...
0
votes
1answer
415 views
Media library only show 2 items per page?
For some reason WordPress media manager is only showing 2 images per page? This is happening on 2 separate sites now and I can't get rid of it.
Is there a way to manipulate items per page for the ...
3
votes
1answer
886 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 ...
0
votes
2answers
368 views
Featured image for links and categories
Is there a ready plugin or solution for implementing Featured Image function to Categories and Links?
At Pages and Posts I use the feature image as a background image, using the full size original ...
3
votes
2answers
366 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 ...
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..
1
vote
1answer
767 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 ...
0
votes
2answers
986 views
media-library: how to insert thumbnails with a fixed width, regardless of landscape/portrait orientation
I've asked a similar question before: How to create thumbnails with a fixed width, so all of them will have the same width?
But... this one is related, but different. Please bear with me.
Right now: ...
0
votes
1answer
320 views
How do you filter get_media_items by mime type in a custom media upload tab?
I've gotten as far as creating my new tab and getting it to show up and I've taken a copy of the gallery screen (I'm making an audio plugin with a playlist feature). The list of media items shows up ...
6
votes
2answers
10k views
Media Library plugins for better file management? [closed]
Is there any plugin to extend the basic functionality of the Media Library for websites with a lot of media content?
A folder structure would be awesome...at the moment I am using the Media Tags ...
1
vote
2answers
451 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 ...
2
votes
4answers
639 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 ...
3
votes
3answers
7k views
Using WordPress as a document library
I would like to include a "resources" section in a new WordPress site I'm creating. I was looking for a document library plugin for WP, and amazingly, couldn't find anything that would work for the ...
4
votes
5answers
23k views
Get All Images in Media Gallery?
Is there a way to fetch the URLs of ALL images in the media gallery?
I think this would be an easy way for a website to have a Pictures page that just pulls all of the images from the media gallery, ...
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, ...
0
votes
1answer
1k views
Proper use of wp_get_attachment_image?
I have two images attached to a page. One is being used as the featured image, and I want the other to automatically be displayed at the designated spot in the template (within the loop) at full ...
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 ...
0
votes
2answers
316 views
How can I paginate results from get_children
I followed this method of getting images from the media library.
// get the first image attached to the current post
function aldenta_get_post_image($size = 'thumbnail') {
global $post;
...
1
vote
1answer
711 views
Uploaded images not displaying in network site
I have a network of sites and have recently added another site. When I upload an image it uploads to the correct directory but is showing a broken image link when viewed within the library or on the ...
0
votes
2answers
2k views
Get an image from the media library. Struggling with the code?
Struggling with this code, the conditions work, the only way I can get the wp_get_attachment_url is to loop through it but then this outputs as many images from the media library and I only want one?
...
0
votes
3answers
1k views
More Fields & Media Upload
I'm using the more types, more fields and more taxonomies plugins and they're beyond excellent. However, I've found that once I remove the main wysiwyg block I no longer have access to the media ...
0
votes
3answers
279 views
Get attachment if matches a variable
how do I match an image title from the media library to a variable then echo that image? this is my current code...
<?php
$args = array(
'post_type' => 'attachment',
'numberposts' ...
0
votes
3answers
3k views
how to download all media files into my computer
How do I "download" all my photos from my media library to my local computer?
I can do this one at a time, but is there a way to grab them all at one time? Sort of like a "download all" process.
0
votes
1answer
341 views
How to bring files from the upload directory to the media gallery?
My wordpress theme creates thumbnails of media files that I upload into my posts. These thumbnails are not accessible inside the media gallery, they exist only in the media upload directory. I want ...
0
votes
2answers
2k views
How do I force Wordpress to show most recent version of images in the media library?
My workflow is sometimes the following:
Delete many images from the media library at once (named for example, 01.jpg, 02.jpg, 03.jpg...).
Re-upload a series of images with the same file names ...
3
votes
3answers
2k views
Add new “Insert Into Post” button with another function
Problem: Add a hook that automatically adds a short tag to video attachments
when inserted from the Media Library (video) tab:
Update:
This works under the 'Media Library' tab — and doesn't break ...
1
vote
1answer
513 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
1answer
2k 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?
3
votes
1answer
12k views
How to use media upload on theme option page?
I want implement upload logo to my theme option page. Currently I follow this code
What I have done for now load a related jquery for the media upload
function load_only() {
add_thickbox();
...
1
vote
2answers
237 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 ...
0
votes
2answers
193 views
Is it possible to determine when user is at “Media > Add New” vs “Post > Add an Image”
I want to wrap the filter below in a conditional that tests whether the user is uploading an image from the Media Manager (Admin > Media > Add New) and not from the post editor image upload routine.
...
0
votes
3answers
2k views
How can I stop WP media uploader from creating duplicates of my uploaded images?
I have a setting in my theme that seeks to prevent the WP media manager upload utility from creating multiple copies of each image I upload. Apparently the latest versions of WP have changed the ...
0
votes
1answer
2k 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
1answer
2k views
Restricting access to files within a specific folder [duplicate]
Possible Duplicate:
How to Protect Uploads, if User is not Logged In?
Is there any way at all to restrict direct access to files within a specific folder to only specific wordpress users ...
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?
...
3
votes
2answers
326 views
How to get the post editor and media library to respect HTTPS administration mode?
I have a site with FORCE_SSL_ADMIN turned on. When I'm editing a post with an embedded image, or when I'm viewing images through the media library, they are loaded using the http:// protocol rather ...