An image, audio or a video comprises a media.

learn more… | top users | synonyms

0
votes
0answers
83 views

Caption description in tinyMCE editor

I posted this on the hacks forum of Wordpress a week ago but it seems no one is able to help me there. I'm currently customizing the captions for a client, and I have two separate problems that I can'...
3
votes
1answer
177 views

Refresh wp.media after ajax call

I'm building a plugin where i add a tab to the media manager and can add stuff from another source. I add the tab with this, which generates a iframe; add_filter('media_upload_tabs', '...
0
votes
1answer
39 views

Customizing individual images on posts

So I'm trying to customize the output of single image in my posts, adding custom divs and classes. I found a good tutorial online here - How to wrap every image in a post with a div? The function ...
0
votes
1answer
20 views

Is there a way to get attachment data?

So, I'm no big fan of how WP stores images (image data) and I was hoping there had been made some improvements in version 4.x. But alas no. When I say image data, I mean url, title, caption, alt text,...
0
votes
1answer
174 views

Wordpress media upload “HTTP error”

When I try to upload an image, I get the following error: HTTP error. I know this problem has been solved hundred times but I can't find the right answer form my configuration. In the php.ini, I ...
1
vote
0answers
329 views

Upload featured image from front end using media-upload.php

I'm trying to use admin/upload.php to upload featured image from front end form. All I have to do is put below code in the front end form <div id="postimagediv" class="postbox "> <div ...
0
votes
0answers
54 views

Change view and refresh wp.media

I'm building a plugin which adds a new media tab. In this tab i display an iframe in which i can select images from another source and upload them to wordpress (using ajax). This works just fine, the ...
0
votes
2answers
222 views

ACF Gallery with Media Categories - how do display categories and sort

I would like to use something to filter images within an ACF Gallery. I have added the Enhanced Media Gallery Plugin which will allow me to assign a category to each image, but am not not clear on how ...
3
votes
1answer
247 views

How do I detach images from posts?

Firstly I've seen some topics like this, but they haven't helped me. I've attached some images to a post via "Add Media" : And for showing these attached images, I used following code in single....
0
votes
0answers
27 views

How to properly extend WordPress media library?

I'm looking for a way/example to properly extend the WordPress Media Library. A good example of a plugin already doing this is Remote Medias Lite. I want the user to be able to select from custom ...
1
vote
0answers
68 views

Custom dropdown field added to media gallery; how to get it to save properly?

I am using the following code to add a couple of custom fields to media attachments: //Add custom fields for attachments function kgal_add_custom_fields_to_artwork( $form_fields, $post ) { $...
2
votes
1answer
26 views

Disable mouse image resizing in editor

I want to disable the mouse image resizing function in wordpress standard editor. So that its not possible to resize the default image size when you select an image and pull on it. Any idea how i can ...
1
vote
0answers
24 views

Add input to the media uploader and pass its value to each uploaded file

Suppose I have a select element containing a list of my custom taxonomies or terms, I need to add it to the media library uploader so that the admin can choose the custom taxonomy to which he wants to ...
2
votes
2answers
129 views

Where do the favicons for Media Files come from

I have uploaded some PDFs to the Media Library. I cannot find a way to set the browser favicon for the PDF media files. Where does WordPress get the favicon from? Is there anyway to control the PDF ...
0
votes
0answers
65 views

Custom upload folder

I have custom post type and I would like that when admin/user uploads images (for example featured image) to this custom post type, the image would be uploaded to custom folder. As default they go wp-...
0
votes
1answer
21 views

get users nickname uploaded media

I want to get the users nickname who uploaded a media file. I'm getting all media files with this code and want to link to the users nickname / profile <?php $args = array( ...
0
votes
1answer
115 views

Only current gallery images with get_attached_media

On my page the gallery images are cycled and I would like to show their title as a caption. Since get_post_gallery_images only retrieves the thumbnail-url of the gallery images I have tried to use ...
0
votes
3answers
301 views

Pagination not working on static page

I am using the following code to display media files on a custom static page. Files display properly but pagination is not working. How can I solve this issue? Following code shows the media files: $...
0
votes
2answers
85 views

Get the path of the first attached media (single.php)

I'm currently developing a wallpaper website using WordPress and I'm trying to figure it out how to retrieve the path of the first attached media in the post so I can display the path in the post (e.g....
0
votes
0answers
71 views

Limit media upload to 4 files per user per day per user role

I'm setting up a (buddypress) site where users can upload media/images. I'm expecting a lot of file uploads and want to keep in control by limiting the upload to 4 files per user per day per user role....
0
votes
0answers
28 views

Change image in media library at specific time

Is it possible to bulk change images (just the images in the media library) at a specified time? For example, I'd like images a.jpg, b.jpg, c.jpg to change with a1.jpg, b1.jpg, c1.jpg tomorrow at 8:...
0
votes
1answer
46 views

How to restrict wp-admin and prevent upload errors

I need to restrict wp-admin access to all users who cant manage_options and still let users add media on the front end. function wpse_11244_restrict_admin() { if ( ! current_user_can( '...
3
votes
2answers
248 views

Trigger JS when featured image upload window is opened in admin

I'm trying to hook up some JS so that when the featured image upload box is opened and an image selected I can use Vibrant.js to analyse the colours of the selected image. The hurdle I've encountered ...
0
votes
1answer
34 views

Why doesn't the Media Browser use thumbnail sized images?

The folks updating our site oft complained about the media browser being very slow, so I went to have a look. And, on the first load of the page, and when doing a search within the media browser, its ...
0
votes
2answers
216 views

Hook into backbone to add js to wp-admin -> media library?

I've enqueued a .js file on the "Media Library" page (upload.php). I need to hide and manipulate a few of the thumbnails on the page using JS only ( I'm not looking for workarounds ). The elements ...
1
vote
1answer
71 views

Site icons with alpha channel for self-hosted Wordpress blog network

Either I'm missing something (or have something badly configured in my self-hosted blog network) or when I'm uploading a transparent .png file (with alpha channel) using Media Library, my Wordpress ...
0
votes
0answers
214 views

Drag and Drop Media Not Working in Windows 10 Edge Browser

Since the release of Windows 10 and its new browser called Edge, I am now unable to drag and drop media to upload it on my WordPress website. Dragging and dropping media works fine on any other ...
0
votes
0answers
171 views

“window.send_to_editor” only called in Wordpress thickbox/media-uploader if “insert into post” is clicked, not “save” button

I am using WordPress's media uploader by using the javascript: function handleMediaUpload(button) { //Enables returning the URL to input window.send_to_editor = function(html) { //...
1
vote
0answers
134 views

Media Library empty after server move (exact copy of files and db's)

After exactly copying both all the files and the database of a site over from an old server to a new one with the same URL (granted, DNS has not been switched over yet but not sure if that has any ...
1
vote
1answer
37 views

Filter Media by Featured on Admin

Usually we can filter images in Media > Library by: date by MIME type, and by attached/unattached files ...but I'd like to expand this to a filter by Featured images. This way, we could filter ...
0
votes
0answers
23 views

Embed button for post screen

i would really appreciate it if someone could help me change the "add media" button on the post screen, and make it rather go straight to "insert from url" so that my users embed a link without ...
0
votes
1answer
131 views

Why would media_sideload_image() not work locally?

I designed a theme for a client that sideloads an image returned from an API. It has always worked and it's still working on their live website. My staging environment used to be a separate account ...
0
votes
0answers
137 views

Reload or Refresh Wordpress 3.5 Media Manager

I was wondering if it is possible just to reload or refresh the new 3.5 Media Manager. I am currently running into a problem where I want to add new tabs dynamically but they are only added once I ...
0
votes
0answers
287 views

File Not Found error returned when trying to access Media Library in Wordpress 4.2. Plugins cannot be installed either

Please help me figure out how to access my media files through the admin dashboard. All media files are present at the server level. I can upload a file through the admin dashboard, but cannot see ...
1
vote
1answer
42 views

Filter for Media Library

I want my users to apply a filter in Photoshop every time they upload an image. Naturally, people are forgetful so I want to remind them of that in the Media Library Screen. I search around which ...
1
vote
2answers
147 views

Hide old attachments from wp media library

I am trying to limit the files that are shown in the wordpress media library popup (from wp_editor). Currently every single file that I have ever uploaded to my site is shown in the library but I ...
1
vote
0answers
161 views

How to delete uploads not in media library?

How to delete uploads not in media library? I have lot of images in my uploads folder but doesn't in media library. Exist some method how this do it?
0
votes
0answers
152 views

Bulk Edit Media Including ACF/Custom Fields

I have two main questions but here's the scenario. I run a festival website. Photographers will upload photos to the site. They will need to relate it to an Artist and an Event, so when viewing the ...
0
votes
0answers
25 views

Why wordpress can't generate metadata of big images

I have the following upload routine (compact): $movefile = wp_handle_upload( $file, $second ); ... $attach_id = wp_insert_attachment($attachment, $filePath); $attach_data = ...
0
votes
0answers
12 views

Wordpress Taxonomy Filter always show nothing

I have currently the following problem: I registered a new Taxonomy (called 'mediacategory'), but I got some problems by creating a filter. The script is working with the default taxonomy 'category' (...
0
votes
2answers
255 views

media_handle_upload : undefined function?

I have been working with a front end upload and post creation script. For some reason calling the media_handle_upload function from my project-save.php file is returning as an undefined function. Is ...
0
votes
0answers
81 views

How can I copy attachment in multisite without duplicating media

In Wordpress multisite, I need to copy post from one blog to another. No problem there. Now, each post have some attachment linked to it. I can copy attachment too, but it will store the same media in ...
0
votes
0answers
61 views

Loading a different theme stylesheet for mobile

So I'm trying to have a different theme stylesheet load for mobile devices. This isn't really for styling, but for the combining of style sheets; I don't need all of the plugins on the mobile version. ...
0
votes
0answers
463 views

PHP upload multiple files with different input field names using media_handle_upload

I'm trying to upload multiple images with different names from input fields on my WP site. The images will be attached to the post as metas. postThumbnail will be the post's featured image and ...
0
votes
0answers
240 views

Wordpress Media library not displaying images

Last week i have updated wordpress, but some how after update media library stopped working. It uploads image but images but not showing on media library popup. I tried to inspect requrest admin-...
1
vote
1answer
19 views

Removal of Media Gallery pictures

When I delete pictures from the media gallery ,does it delete the photos from the post that has been published?
0
votes
0answers
30 views

image alt text in url opens image in wordpress yoast seo issue

Strage issue on my site. The text in alt tag when placed in the url like http://sitename/pagetitle/alttext opens the image on http://sitename/pagetitle page causing issue in the seo :( Simply the ...
1
vote
0answers
69 views

How can you change all past posts' images to link to none instead of the image file?

I'm working with a new client who has a ton of existing posts. She has a lot of inline images and for some reason they all link to the image files. I know how to change this for future posts by adding ...
0
votes
1answer
23 views

Help with WordPress slider

I Created a Theme for Wordpress and i created a slider.php file in inc folder . How i can call this file to show after the header . +the slider.php file will be used to declare the slider style ...
2
votes
1answer
81 views

Different upload path per file type

I want to have two different paths for different files. For example, I have all .zip and image files all in the same locations. What I am wanting to the have images in one path (eg. wp-content/...