An image, audio or a video comprises a media.

learn more… | top users | synonyms

0
votes
0answers
215 views

Unable to Upload image via WordPress Media Manager

I have a WordPress 3.5.1 driven website. When trying to upload images via WordPress Media Manager, the below error is displayed: "xxx.jpg has failed to upload due to an error. The uploaded file ...
0
votes
1answer
35 views

Different Crop / Scale Settings

I have an Affiliate Store with 8000+ Products from over 20 Partnershops. I refresh the Products via CSV ( WPALLIMPORT ) I use Woocommerce Each Shop has a different Image-size. some of them have to ...
1
vote
2answers
603 views

Retrieving JSON data in ajax request from media uploader

I'm having some problems getting my JSON data that's being passed via an ajax request. I'm trying to implement the media uploader into a plugins settings page. I've got it functioning properly using ...
3
votes
1answer
769 views

Remote upload file to server B

I'm aware this might be some of the hardest coding to do ever, but thought of giving it a try. Im basically trying to detect all (mp3) filetypes uploaded through the Wordpress media upload and send ...
0
votes
1answer
793 views

How to remove “Image Information” and “post date/author” from a media page?

I'm trying to use Wordpress to setup a simple website for my business, and I'm having issues with the gallery page. Once an image is clicked and brought to it's specific page, it includes author and ...
1
vote
1answer
508 views

Customizing default Mediaelement player

Good morning/afternoon everyone. Been playing around with the default wordpress mediaelement player and definitely loving it. I managed to customize the layout a little by overriding some css values ...
0
votes
2answers
69 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 ...
0
votes
0answers
10 views

Media library only shows for admin. Doesn't show editor or below

There is no problem of viewing the media as an administrator. But when we login as an editor any other lower roles the media library does not load the content (see screenshot). It does work on this ...
0
votes
0answers
24 views

How to modify Insert from URL (Media Library) WP 4.4

I need to modify the Insert from URL form in the Media Library modal. I am trying to add extra field to it. Does anyone know how it can be done? Thank you! Possible solution This code got me ...
0
votes
1answer
61 views

How to extend Media Library (WP 4.4)

I am trying to implement a new tab next to Media Library. I couldn't find solution to implement this. I found an example how to implement a new tab in this link: https://gist.github.com/Fab1en/4586865 ...
0
votes
1answer
31 views

wordpress images not showing properly

Images are not visible properly in the media library after caching them from my other website. The featured image is also not being set. However the images are showing up on the front end of the ...
0
votes
1answer
619 views

Site migration - some images not displaying in Media Library

After migrating a site from the live server to my test server (different URL), some of the images (not all) are not displaying. The src is correct, image is in the uploads folder, and everything ...
3
votes
1answer
448 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
0answers
17 views

wp.media.view.ImageDetails - Save settings as HTML5 data-* attributes for image

What I finally want to achieve are extra settings added to the Image Details box, that will be stored in the image data-* attributes I am creating a plugin, and I need to create more settings for ...
4
votes
2answers
928 views

Filter by post category in Media Library

I am trying to find a way to filter the Media Library by the Post Category that a Media item is assigned with. I can see that you can sort by "attached to" but this only get me a little of the way ...
0
votes
1answer
21 views

Limit dimensions of “Full” size images

Is there a way to limit the dimensions of the full size uploaded image (made normally through the Media library)? I have clients that upload huge images files with resolutions sometimes greater than ...
0
votes
0answers
8 views

Media settings image sizes ignored in attachment display settings when uploading image

I know this question has been asked before here; Settings in 'Media > Settings' is ignored when inserting images I tried all suggestions and none of them work for me. I've set the image ...
4
votes
1answer
702 views

Upload path/URL weirdness for the main blog of a multisite/network setup

We have a WP network (with domain mapping) that was started pre WP 3.5, so it was using ms-files.php and wp-content/blogs.dir/ to store media files. I wanted to remove ms-files.php dependency and ...
0
votes
1answer
405 views

Insert media button will always add into the same tinyMCE editor

I have an issue with the insert-media button. I have 2 instances of tinyMCE with both Add Media button. When I add a media in one of the two tinyMCE, all my media will go in this after, whatever which ...
0
votes
0answers
9 views

Prevent non-admin to deattache media

We use Woothemes Sensei plugin as our Learning Management System. We also use Sensei Media Attachments plugin, in order to attach PDFs to our lessons CPT. Well, from time to time some PDFs are being ...
0
votes
1answer
9 views

Get posts associated with media attachment

Is there a good way to find all posts that contain a specific image? I'm working on the attachment single template, and I'd like to list the posts that contain that image.
4
votes
1answer
417 views

How to make WordPress use protocol indepentent upload files?

I am using FORCE_SSL_ADMIN in wp-config.php so everytime I upload a new image and inserted into the post, it is using SSL version e.g. <img ...
1
vote
1answer
2k views

Audio and video shortcodes not working properly

I'm having some trouble with Wordpress's built-in shortcodes for audio and video. When I embed a video, it basically gives me a black box and has a link to download the file at the top; when I embed ...
0
votes
1answer
20 views

How to Insert images in WordPress using code

I am trying to create a plugin for auto posting. I was able to create new post and then get the attachment for the post. But images are not showing inside the post itself. but if I click on media ...
0
votes
1answer
2k views

Add SWF file to wordpress through custom template

I am trying to attach an swf file to my website. I have that swf file in my local system. But wordpress is not alowing me to upload the swf file into the media library. I want to add that swf to my ...
0
votes
1answer
23 views

When I insert media from Library into a post, can I then safely delete that media?

My Media Library is getting cluttered and I would like to start deleting old images. Will doing so affect the posts into which I have inserted these images? Does inserting them into the post copy the ...
0
votes
3answers
824 views

How do I embed youtube video via url in frontend posting

I would like to embed videos & images by entering url in my wordpress site. In WordPress repsitory there are many plugins for embed video by url but in my site I want to enable this functionality ...
0
votes
0answers
15 views

Media images not loading on grid mode

I have WordPress installed and during my work i feel that media stop loading images.I tried on grid mode but its not working.Its working fine on list mode.I tried different techniques like enabling ...
0
votes
1answer
962 views

Function to remove all classes on images inserted into posts?

I'd like my images to have no classes assigned to them by default, as I (sometimes) add my own classes to create custom 2 column layouts... can I do this without hacking the core? From my googling it ...
0
votes
1answer
406 views

Media Attachment Custom Meta Fields not saving in Media Uploader when using jQuery UI Autocomplete

I am trying to write a plugin that adds a custom meta field to image attachments to give images a credit field. I use the 'attachment_fields_to_edit' and 'attachment_fields_to_save' filters. ...
0
votes
0answers
6 views

Is it possible to set image-size for wp.media?

Working with wp.media for a custom media uploader on the front end, I noticed the media fetched is in the large image size (1200x900) and it is an overkill. I only need them in small image size ...
0
votes
0answers
10 views

Different images in media while selecting different laguages

I have simple WordPress 4.3.2 site with Polylang plugin and Twenty Twelve theme. I found strange relation between images in Media and selected language. When I swich between languages while staying in ...
0
votes
1answer
1k views

Cropping thumbnails to specific dimensions on front end post

Probably not the best title description but here we go. One of my custom post types is for youtube videos which I take the thumb from youtube and upload it as a thumbnail for the post. Now it's easy ...
0
votes
1answer
117 views

How do I create a custom add media button modal?

I've created a custom media button for the admin in editing posts, but am having trouble figuring out how to create a view for the modal. I'm not trying to insert uploaded media; I'm trying to allow ...
0
votes
0answers
17 views

How to open the Attachment Editor frame in the WordPress media modal?

I am building a plugin that uses wp.media to launch a modal where the user can select multiple images to add to a gallery. There are many tutorials that explain this process and I managed to ...
0
votes
1answer
114 views

Add/change multipart_params parameter when uploading post image

I'm working on plugin that optionally manipulates uploaded content (images). I managed to add some additional fields on "Insert media" popup under "Drop files anywhere to upload" text, but I need to ...
4
votes
1answer
890 views

wp_generate_attachment_metadata returns empty array

foreach ($_FILES as $key => $file) { $uploadedImage = wp_handle_upload($_FILES[$key], $upload_overrides); pre_r($uploadedImage); if ...
-1
votes
0answers
25 views

image gallery popup for image “insert form url”

i want a image popup like lightbox , fancybox , in post , but for image insert with method "insert form url", i tried various plugin but never have a option for popup for external image, exist a ...
0
votes
0answers
11 views

Run script when media uploader is opened in post

I've added additional fields to attachment fields so that the user can select a photographer either from a dropdown that has a list of photographers, or you can put your own photographer. For that ...
0
votes
1answer
1k 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
0answers
439 views

Custom dropdown filter in media grid view

With the new grid mode in the media library the good old WP_List_Table specific restrict_manage_posts filter for adding custom filtering options is not available. All happens through JavaScript. I ...
1
vote
1answer
39 views

How can I make sure attachment pages require a base url?

If I upload an image with the filename 8.jpg then the permalink becomes http://www.example.com/8 -- which I really don't want. How can I make attachments use their mime type as a base for the url? ...
0
votes
2answers
36 views

Don't show avatars in media library

I am letting users upload avatars which are stored within the uploads folder inside the avatars subfolder which I created. The problem is that avatars are now listed in the media library among other ...
1
vote
1answer
499 views

Site not getting correct featured image from my query

On the home page of my site I have a series of tiles that link to various parts of the site. One tile links to the blog and I have written some code to pull the latest post with an image attached to ...
1
vote
1answer
15 views

Deleting images from gallery remain as attachment

Process creating a gallery: I create a post with post format gallery I add images from "Add media", note I don't use "Create gallery" but insert pictures into the post update then I have a php ...
0
votes
1answer
30 views

Detect Featured Image remove while editing post in wp-admin (client-side)

I'm looking to add some client-side (JavaScript) events to the post edit screen of wp-admin (post.php?action=edit). I wish to fire events when the user selects a new featured image and a different ...
0
votes
1answer
28 views

Organizing the Media Library for Cleanup

I am an avid WordPress(.org version) user, and I just got tasked with the job or sorting/deleting 502 items from the Media Library. I want to find all of the documents (they are PDF, Word, PPT, etc. ...
0
votes
1answer
18 views

Save Custom Meta Value on Media Upload

I am looking for an option where a custom meta value will be saved when user uploads an attachment. Lets say I need a meta key _example_meta_key and want to save meta value of this as ex087659bh (It ...
4
votes
2answers
85 views

get total number of images from media using xml-rpc

I have large number of images in media library so I am accessing images in chunks via pagination in my Ruby on Rails application. I pass page number and offset to wp.getMediaLibrary API and it returns ...
0
votes
0answers
14 views

Add image class using a <select> input in media upload window & send to editor

I need to add the bootstrap "img-responsive" class via the media upload pop up. When users click the Add Media button, selects and image, there is an extra input select field below the description. ...