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
59 views

How to add images to a post without inserting them into the content area of the post editor?

I'm building a site where I need to be able to add multiple images to a post, but not have them in the regular content of the post. These images will be used in a gallery above the post. My client ...
1
vote
0answers
108 views

How to replace featured image upload option with the post media image option

I am looking for a way to insert custom URL links in featured Image as well. Currently Featured image tab is only having these basic settings - But I want to add custom URL links to my featured ...
1
vote
0answers
48 views

Multi Upload In Theme Options

I need to use the WordPress media upload on a theme options page. It needs to be able to have multiple fields on one page. I have seen a few things on the site using search but nothing recent and ...
1
vote
0answers
239 views

Changing image URLs in media library

On a default wordpress install, the media library is located at: /wp-admin/upload.php. I am trying to update the image URL to point to my CDN, not my local server. This filter ...
1
vote
0answers
324 views

Can I create my own custom Attachment Display Setting?

I'm porting a client site over to WP from an old customized .Net CMS and something their existing system does well is the site admin interface contains a simple utility for uploading media to the ...
1
vote
0answers
135 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 ...
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 ...
1
vote
1answer
149 views

problem in uploading attachment to custom directory

i have been trying to upload the attachments to the custom directory without affecting the old uploads. so i use this bellow code to achieve that add_filter('wp_handle_upload_prefilter', ...
1
vote
1answer
63 views

Can I set multiple feature images to multiple posts from the media library?

I have 70 posts I would like to add a feature image for. I have loaded all of the feature images to the media library. Can I 'make it the feature image' from the media library, or do I have to go into ...
1
vote
1answer
381 views

Media Library not showing images but still acknowledges existence

I have no idea why this is happening. I've read A LOT about it and there don't seem to be any solutions. I once read that it was expected behaviour because of some plug-ins and that the Hotfix plugin ...
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
70 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
118 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 ...
1
vote
1answer
296 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
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 ...
1
vote
1answer
261 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 ...
1
vote
1answer
455 views

Inserting a Download Link in the Quick Edit Actions of the Media Library?

What's the best way of doing this: On The 'Media Library' page, I would like a link next to 'View' (the 'View' that appears when you hover over a Media item) for 'Download'. The 'Download' hyperlink ...
1
vote
1answer
447 views

Share media among different domains

I have multiple Wordpress instances that live on separate domains (not a multisite installation). Since they provide the same content in different languages I'd like to share the images among these ...
1
vote
1answer
778 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 ...
1
vote
2answers
344 views

Get url of thumbnail from the media uploader

I want to select image from the WordPress 3.5 media uploader. I can get the image URL with the following code, but it gets the full size image. I want to get the thumbnail image url,how can I get ...
1
vote
4answers
726 views

offload media to external services

Does anyone know a way (plugins or similar) to offload media (images mostly) in wordpress to an external service? like flicker, or imageshak? I think that offloading images from the wordpress ...
0
votes
1answer
643 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 ...
0
votes
2answers
2k 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
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 ...
0
votes
1answer
246 views

Show selected images on top in Media Manager

I've searched numerous StackOverflow and Wordpress Awnsers questions, but I couldn't find any solution that matches my situation or even remotely points me in the right direction. I have a custom ...
0
votes
1answer
66 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 ...
0
votes
2answers
720 views

Disable media library tab for non admins in uploader screen

I am developing a plugin in which i am required to allow front end users to upload media, which I am able to do. But I don't want to let them sneak into media library which comes as tab with uploader ...
0
votes
1answer
516 views

Using jquery-1.7.2.min.js instead of the wordpress jquery

I have been trying to deregister the wordpress native jquery and use my version that i have downloaded.At first everything was working fine with the wordpress resident jquery albeit replacing $ with ...
0
votes
2answers
2k 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
5answers
827 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 ...
0
votes
1answer
432 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
5k 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 ...
0
votes
3answers
4k 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
527 views

Wordpress function: limit size, only jpg, jpeg, limit of uploaded files per account

Need help with a function that will limit upload for non admins: Check before upload if file is jpg, jpeg. Check before upload if picture is not bigger than 700kb. Limit uploaded files to 7 per ...
0
votes
1answer
1k views

3.8 Media Upload and Custom Meta Box

I've been using Tammy Hart's Reusable Custom MetaBox code for some time now but with the recent 3.8 update the media upload seems to be no longer functioning, and the code is no longer supported. ...
0
votes
1answer
138 views

Images are not showing up in “Uploaded to this post”

I had to delete all my files of web site for some reasons. Then I've restored the files back to host. But the problem is that; Firstly, I uploaded all the images (about 4000) to upload folder via ...
0
votes
1answer
140 views

Get images attached to a specific page

Is there a way to fetch the URLs and captions of all images attached to page x?
0
votes
2answers
524 views

A link (not in the post) to download a specific PDF file

I want to add a button (or rather, a link formatted to look like a button) in the utilities area somewhere above the main navigation menu of a WordPress-based business site (that is, not in the body ...
0
votes
1answer
190 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?
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 ...
0
votes
1answer
209 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
4answers
2k views

Get the attachment URL on single.php

i've been trying to get the attachment URL on single.php, so far this code gets the DIRECT LINK to the image; <?php if ( $attachments = get_children( array( 'post_type' => 'attachment', ...
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
267 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?
0
votes
1answer
408 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
551 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 ...
0
votes
1answer
85 views

Why does WP allow to view and media item as a page

Every media item that is uploaded to Wordpress can be viewed in a page. This can be seen if you browse to the Media section, hover on any item and click view. Are there any benefits to this because I ...
0
votes
1answer
120 views

Images don't update after being edited

I have many pictures on my site and after posting for a while, I realized that I should have watermarked them. So I did just that, I downloaded all the images and watermarked them. I uploaded a few of ...
0
votes
1answer
657 views

WordPress image crop probems

i'm developing a portfolio theme on WordPress 3.2.1, so i created a new post_type called 'portfolio'. My aim is to show, on the front-end, a grid composed by the jobs i realized during last years. ...
0
votes
1answer
1k 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?