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

0
votes
0answers
9 views

Media Manager not creating thumbnails

I am working with the media manager in WP 3.8. For some reason, it is not creating thumbnails. The original image uploads just fine. Here is a list of things I've done or checked: The images I am ...
0
votes
1answer
14 views

Using the media library for theme customization

I'm using Underscores to build a theme and I've added an image selector to the customization section, which appears just like the default Background Image section, except clicking 'Select Image' ...
0
votes
1answer
13 views

Upload mobi and epub file in the MEDIA of WP

How can I upload mobi and epub files in the MEDIA of my WP site? I want customers to be able to download my ebooks in the epub and mobi version also, not just in PDF !!! I know there is an HTML code ...
0
votes
0answers
28 views

HTTP error on media upload (WP 4.1, Minamaze Theme) [on hold]

I'm desperate, folks. Total newb for everything scripting, but getting an HTML error when uploading a JPEG in WP 4.1. I'm running Minamaze. I didn't have any problems with this until a few weeks ...
0
votes
1answer
30 views

How to link a PDF file to a category URL

I am not sure if it is possible to do this but I have a category called case-studies into which I write individual posts to summarize a case-study - for the sake of this question let's give a title of ...
0
votes
1answer
17 views

My deleted media exists jet

I've a problem with my wordpress theme. I deleted some media files (some img) and it's appearing in my Media section (in my wp-admin) without thumbnail, but it's like the file exist. I'm looking in ...
1
vote
0answers
11 views

Refreshing collections in the admin media manager

I know this question is very similar to this previously asked question; however, I was wondering if there was a more up-to-date/official way to refresh content programmatically in the WordPress admin ...
0
votes
0answers
17 views

Exclude some photos in media library

I was searching for filters to exclude some photos from media library. I have an array of image ID, and want them to exclude from media library any idea?
0
votes
0answers
18 views

Images On The Server But Not Showing Up in WordPress Multisite Media Gallery

I've had several different WordPress installations in the past. I've moved all of them into a single WordPress multisite install. Previously, there was one main site installed on example.org and then ...
0
votes
0answers
22 views

Force an image upload form field to display as checkboxes

I'm using a plugin called Media Library Categories which adds category taxonomy to media files, so I can give images a category denomination. It works and displays as checkboxes in the Edit Media ...
2
votes
1answer
32 views

Uploading images: 'ø' get replaced with 'ø'

So, I have 2 sites. One in production, and the another in development. They have the same content and uploads. In production, images with names containing æ, ø, or å gets the character replaced with ...
1
vote
0answers
41 views

Custom media picker in meta box: how to select available image sizes?

I have a custom meta box where a user can select an image and save it using wordpresses media picker, set up with some JavaScript. That works fine, but I'd like the option to select which version of ...
1
vote
1answer
55 views

How do I fix permalink and media library issues on a LEMP stack?

So, I'm setting up a wordpress site on Digital Ocean's IaaS. I'm using nginx as a proxy and web server (instead of apache), so a LEMP stack. I was able to get my site up and running, though there are ...
5
votes
1answer
113 views

Custom “Uploads” Dir: “Edit Image” in Media Library broken

Directory Structure I have customized my (local) install (dev box). The current directory structure is: ./root |- wp (WordPress Core root) \ |- wp-config.php |- wp-content (Content and ...
0
votes
0answers
16 views

How to prevent newline chars after inserting images

I mostly write my blog posts in the Text rather than Visual editor. I add line breaks and allow wordpress to translate them to <br> and <p> tags as appropriate. That works fine. My ...
0
votes
1answer
30 views

Distinguish between 2 instances of admin-ajax.php

I've added an avatar image selector to my profile.php page. I'd like to be able to alter the query that loads the image library using pre_get_posts but I can't find any way to distinguish between ...
0
votes
2answers
59 views

Upload Multiple Files With Multiple Fields And With media_handle_upload

I asked this question about few days ago and the answer solved my instantly problem but now when I tried to put many file fields in the form just the first field work because the solution of my ...
1
vote
2answers
123 views

Upload Multiple Files With media_handle_upload

I have a WordPress form plugin and I use media_handle_upload to upload the files and get there ids directly and attached its ids to the post as a meta date, I used the following to did that: The HTML ...
1
vote
1answer
43 views

Featured images get shrunken

While uploading featured images, the problem I am getting is, all images are shrinking automatically. I want to retain the original image. Check this example. All staff memebers images are shrinked ...
5
votes
1answer
141 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 ...
0
votes
0answers
41 views

WordPress media uploader - upload tabs not hiding

I'm in the process of adding a front-end post editor to one of my sites. In doing so, I need to prevent certain users from being able to upload media. I have things "kind of" working but there are a ...
0
votes
0answers
22 views

How can i upload files to a dir other than media library

I am developing a custom plugin . That plugin need to have upload functionality which will not be images and should not be seen in media gallery . How can i set a custom upload directory which can ...
1
vote
0answers
13 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 ...
0
votes
0answers
45 views

Filter wp_get_attachment_image

I'm working on a new WordPress plugin, that will have to change the media library directly. For that I have to overwrite or filter the wp_get_attachment_image function, that class-wp-media-list-table ...
0
votes
0answers
33 views

Filter media attachments by post in Media Library

Were working on a small plugin to allow attachments in the media library to be filtered by the post that they are attached to - and the basics are working: You can see the full code hosted on github ...
0
votes
0answers
43 views

Add Media Library tab to Image upload of Theme Customizer

When creating a custom control in the Theme Customizer to add an image, how do you add a tab for the Media Library in order to select a previously uploaded image rather than having to reupload an ...
0
votes
0answers
20 views

Failed to import wordpress xml and media

I am trying to import a wordpress site into a woo theme. The original site from which the imports where made no longer exists but I have the media folder which I uploaded to the new site. I changed ...
0
votes
1answer
66 views

How add a group by to the query used by the media library?

What would be the proper way to add a group by to the media library query? What I have tired so far is not working: add_filter('posts_groupby ', 'limitMediaLibraryItems', 10, 2 ); function ...
0
votes
2answers
16 views

add titles to images in ad media in pages and posts

When editing pages or posts you can press the add media button. This shows a grid of all your images but it does not display the image names. I have lots of similar images and I would like a image ...
0
votes
0answers
60 views

Restrict access to files to logged-in users (WP + IIS)

I have a WP site, hosted on a Microsoft IIS, server which has both a public and a private, registered users only, section. The private section is a repository of pdf files. I've granted access to the ...
0
votes
0answers
12 views

Changing the media library view with code

Quite simply, how can I make the list view the default view in the media library rather than the grid view - using code? I came across $tab = apply_filters( 'media_upload_default_tab', 'type' ); ...
0
votes
0answers
90 views

Failed to load resource at admin screen

So I've done Wordpress clean install in a live server. Everything looks fine and seems to work. However, if I go to the admin's edit page or post and try to add or change the featured image, the Media ...
0
votes
0answers
29 views

media_sideload_image uploads an image multiple times!

i want to upload an image programmatically into wordpress media library and then attach it to a post! i found media_sideload_image function in wordpress codex but when i use it in functions.php file, ...
0
votes
1answer
109 views

Update media file url in wordpress media library

Currently my videos are hosted within my wp installation. I want to move all videos to my new server. Currently, my media url are as follows http://mysite.com/wp-content/uploads/video01.mp4 I am ...
0
votes
2answers
64 views

Unable to upload images using the Media Library

I have had a site that has been working perfectly for the past few months. Then all of a sudden when I go to upload an image via the Media Manager on the Admin Dashboard I get a 500: Internal Server ...
2
votes
3answers
80 views

How do I go straight to “Edit More Details” when clicking on an item in the media library?

By default, when I click on an item in the media library, it takes me to the Attachment Details page, e.g. .../wp-admin/upload.php?item=65. What would I need to edit to make it go straight to the ...
0
votes
1answer
29 views

Private file system for attachments

Is there a way to make an attachment private? This also includes moving the files to a separate folder for private attachments, even if it's a sub-folder of uploads, to restrict anonymous access ...
0
votes
1answer
31 views

Issue removing Media Editor Tabs — Duplicate Items

I'm following the advice found in several places to remove tabs by using the following filter. However, the same number of tabs appear, the last one is simply displayed x number of times. I'm running ...
3
votes
1answer
53 views

Bind event on Media gallery elements WordPress

Good day ! Please help to get binding on WordPress Media Upload elements. When i click on any of gallery item need a custom function to fire up. There is a BackBone collection called "Attachment" ...
0
votes
1answer
99 views

How to rename an image attachment filename using php

I have the ID of the image uploaded and I need to rename it using php. (The reasons because I have to do it are difficult to explain and I think they are not even necessary for the purposes of this ...
0
votes
1answer
52 views

Retrieve Image from Media Library by it's category

What I am needing to do here is get an image from the media library only by it's category. It won't be attached to a post, meaning that, the image will not be uploaded as a "featured image" of any ...
0
votes
0answers
44 views

Access to the header cropping tool in modal

For the moment I access the media uploader via a meta box from the edit post screen. The code works: no problem. However, I would like to know how to be redirected to the crop tool right after the ...
2
votes
1answer
92 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 ...
0
votes
1answer
28 views

How to get only current images of a post

I am new to WordPress. I have created a template page where I want to show single posts, So to get media of that post I am using a function $args = array( 'post_type' => 'attachment', ...
1
vote
0answers
67 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 ...
0
votes
1answer
33 views

How to upload unknown file type?

I've already read about mime types in wordress and how to add them, but I can't find any documentation about the correct type of files. For e.g. after a lot of research I find out that the epub ...
0
votes
0answers
19 views

Adding photoship mime type in plugin

I read over other posts about adding mime types, but I am still unsuccessful. Here is the code in my plugin: add_filter('upload_mimes', 'custom_upload_mimes'); function custom_upload_mimes ( ...
0
votes
0answers
17 views

Preventing a user from inserting a gallery using the Media Uploader, causes errors

As the title suggests I am trying to prevent a user from inserting galleries. This can be achieved with: function remove_media_library_tab($tabs) { if(!current_user_can( 'administrator' )){ ...
0
votes
0answers
73 views

Copy image url to my own field in media upload

i have add new field in media upload for slider plugin. what i don't get it how to copy the image url to my own field. look at the screenshot:
0
votes
0answers
29 views

How to show description of media library under an inserted image?

What i want to do is showing automatically the imagedescription, inserted in the media lib, if available. I found this solution, How to show description under an inserted image? which is great, but ...