An image, audio or a video comprises a media.

learn more… | top users | synonyms

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
0answers
5 views

Media Edit Page - Add Next/Back button

I use the Media Edit page (for individual images) to add Category and Tags. It would be time saving to have a NEXT and BACK button so I can step to the next image, to allocate Cats and Tags to the ...
1
vote
1answer
45 views

WP Media uploader loading only once in options page

A weird issue happening with me which I am unable to fix. In my theme options page, I added options to upload images one for logo and another for backgroud image. Here is my HTML <table class="...
-2
votes
1answer
39 views

Get Thumbnails and Thumbnails URL from Media Manager

I need to insert several thumbnails generated from featured images in html, to use them in a slider that I've built. I can't get the thumbnail size via PHP because it breaks the code module (I am ...
0
votes
0answers
6 views

How to get the return value of wp.media({ frame: 'post' }) in all cases?

When the user is in an edit.php page or post-new.php, the wp.media global is available and I want to use it to open a special insertion view that allows videos. var frame = wp.media({ frame: '...
3
votes
2answers
1k views

Add media with WP-Rest-API v2

I need your help to upload a media image in my wordpress blog via the Wp-rest-api v2 and Oauth2 authentication. I did not find in the REST API documentation the way to send my image data (name of ...
0
votes
2answers
419 views

Remove Media File Items From Server That Do Not Exist in Media Library

Pretty much as the title suggests I have items on my server (images mostly) that do not feature anywhere in the media library. What is the best way to delete these? Is there a plugin or would I need ...
3
votes
1answer
497 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 ...
0
votes
2answers
10 views

Check if author or uploader id of the attachment(uploaded) image is match?

I am trying to write a function to upload and delete images on frontend with dropzonejs uploader, and so far i managed to make everything work. But the problem is that i need to secure it that the ...
1
vote
1answer
19 views

How to get file URL from media library

I am attempting to copy a file from an external URL and then reference the local copy of the image via a WordPress shortcode. So far I have managed to copy the external image to the media library ...
1
vote
1answer
1k views

How to Add Custom CSS to the Media Thickbox?

I've added a couple of custom fields to the Edit Media screen, but when these are displayed in the WP Media Thickbox (when adding images from the Edit Post screen, for example), the styling is gone. ...
3
votes
1answer
196 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', '...
1
vote
2answers
970 views

Wordpress 3.5 Media Uploader - Only allow 1 upload and certain file types

I am trying to include the new WP Media Uploader in a Custom Meta Box. I found this tutorial. However, I am looking for a way to limit the uploader to only accept certain types of files like '...
-1
votes
0answers
18 views

How to Change the Custom Media Upload view to Default View

My client has a custom theme which's has a custom option for selecting the featured image for any post. The current default view for selecting the featured option is "Uploaded to this post only". ...
0
votes
1answer
13 views

bulk media crop for featured images

I want to select all the images which are used as "featured image" on woocommerce products and modify and crop the images to fit a specific height. Does anyone know if there is a plugin available or ...
0
votes
1answer
12 views

Callback Function Not Firing On Selection In Media Uploader

I'm studying theme development and am working on some code for a media uploader that can be used to add a picture. The file frame is opening (and I've called wp_enqueue_media(); for that to be the ...
0
votes
0answers
8 views

Play more than one Audios Simultaneously

I am working on a WordPress site which is using Media Player. I have to insert audios with each Woocomerce product. Somehow I managed to display the audio with each product on the product listing page....
1
vote
1answer
482 views

Add select field to media uploader that adds a class to the image

I'm looking for a way to add a <select> menu to the media uploader that will have two options: normal image, which will do nothing, and profile image, which will add a CSS class to the image if ...
0
votes
0answers
13 views

Force WordPress, themes & plugins into using defined sizes

Many users do not compress or resize their images before uploading them into a post, so source images can often be a lot larger than the settings in /wp-admin/options-media.php. Many theme and plugin ...
3
votes
2answers
45 views

What is the best practice for renaming Wordpress media files?

Occasionally I change the name of a media file in Wordpress, but the filename (see screenshot) does not change in the process. I see a handful of plugins online that purport to change this. I'm just ...
5
votes
1answer
808 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
2answers
994 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 ...
6
votes
3answers
970 views

Replace audio/video enclosure with player?

Current state: I'm parsing XML feeds into the front end and/or the back end (Admin UI), but not into the DB. Inside those feeds i place mp3- and video content, currently only as plain text (no link, ...
0
votes
0answers
4 views

Is there a way to limit the number of choices in the WP Media Selector

I'm calling the Media Chooser via wp.media({ title: 'Insert a media', library: {type: 'image'}, multiple: true, button: {text: 'Insert'} }); Everything is working just fine. However, for a ...
-2
votes
2answers
32 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 ...
3
votes
1answer
954 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 ...
1
vote
2answers
691 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 ...
6
votes
2answers
111 views

Uploading media with the REST API

I am having trouble when uploading media to a WordPress site with the JSON REST API. With the following code I can upload the photos, but no info is assigned to them, not even the name - in fact the ...
1
vote
1answer
602 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
0answers
15 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
918 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 ...
2
votes
1answer
31 views

How to disable Wordpress Media resize different size version?

When i upload to a media, Wordpress is resize it to many version like that 2016-04-03_23-36-35-90x65.png 2016-04-03_23-36-35-120x80.png 2016-04-03_23-36-35-360x240.png 2016-04-03_23-36-35-480x320....
0
votes
1answer
484 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
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
17 views

WP Capabilities to Add Media, Use Media, But Not Edit Them

I just want to have role that can specifically adding media, use the existed media, but not edit OR delete them. I was looking for the capability, but I don't see it listed. Or it's really ...
4
votes
1answer
1k 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 (!isset($uploadedImage['...
0
votes
1answer
555 views

How to get all inline images in post content?

I want to get all inline images in the post content. The get_children() method doesn't work for me because they could add the same photo twice. Also this only gets "attached" images, and they could ...
2
votes
0answers
48 views

How to import 55k images (uploaded via FTP) into Wordpress Media libary? [closed]

I have got 55k images in my Wordpress Uploads folder which are not showing up in the Media Libary, how can I make them registered there ? I tried the plugin 'Add from Server' but there are to many ...
0
votes
0answers
51 views

wp-admin/post.php access denied

When I publish or update posts with media (eg: image ) it results to following message. Access Denied You don't have permission to access "http://example.com/wp-admin/post.php" on this server....
0
votes
1answer
15 views

Media previews on posts

Firstly a quick disclaimer - I'm fairly inexperienced when it comes to WordPress. I'm a programmer by profession but don't work with PHP or wordpress a lot. I've just done a theme change on a blog ...
1
vote
0answers
16 views

Allow downloading unusual file types

I am trying to make .dwg and .rfa files downloadable on a Wordpress site. I've added the following code to allow them to be uploaded through the media browser: function additional_mime_types($...
0
votes
0answers
49 views

Wordpress Media URLs?

I just launched a Wordpress site after having done all of the standard procedures: moved the uploads folder, uploaded the database, and did a search and replace on all of the urls in the database. ...
4
votes
3answers
146 views

Set limit to media upload?

I am searching online and all I can see is how to increase file size for media upload, which I know how to do with php.ini, but what I need to do is limit the file size for media upload only. The ...
0
votes
2answers
24 views

Newly uploaded images are not updating in featured image

Using the google page speed test I saw that some images were too large and needed to be resized. I used the ftp to download the necessary images, resized them locally, and then used the media upload ...
0
votes
0answers
15 views

Any way to use media (uploads) from one site in a new site?

I've had a wordpress site for a few years. Now I'm starting a new site (in a different language) which will use many of the same images from the old site. I don't want to duplicate media, as server ...
0
votes
0answers
24 views

How to upload thousands of images with folder tree?

Hi We need to upload meda from FTP and when choose image from add media there show foder tree for choose media. See the attached screenshot.
2
votes
0answers
93 views

Media upload via backend doen't work after moving site

I have copied my site to a subdirectory for test purposes, everything works fine now. The only problem I have seen so far is the Media upload. When I try to upload a file I get a: Unable to create ...
3
votes
2answers
2k views

Use Media Library to manage galleries like Nextgen (with folders, albums, collections, tags, categories, terms…)

I'd wish to use WP 3.x standard Media Librery rather than relying on 3rd party plugins like NextGen no matter how well they're written. I just don't like duplicating functionalities. Media Librery ...
1
vote
0answers
23 views

Add custom tab on the media manager

I want to add a new tab and its content on the media manager. I have used add_filter('media_upload_tabs', 'mime_type_tab' , 1 , 1 ); but that filter it is not working on the featured image pop up.