An image, audio or a video comprises a media.

learn more… | top users | synonyms

0
votes
0answers
8 views

Send media uploads to different directories

I am making a website for my local primary school, and I have each class page as a separate page template. Rather than have all their uploads go into the general /uploads/ folder I'd like to direct ...
1
vote
1answer
23 views

Which hook is fired when inserting media into a post

I want to add numbering to each image when I insert them into the post. For example if I insert 3 images into a post, there will be: Image 1 Image 2 Image 3 I looked through the WordPress ...
0
votes
1answer
457 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 ...
1
vote
3answers
46 views

How to reduce original image quality on upload?

I know that I can use the jpeg_quality filter like this: add_filter('jpeg_quality', function($arg){return 75;}); This will reduce the image quality of the images generated during the upload process ...
0
votes
1answer
860 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
2answers
2k 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
8 views

Widget not notifying customizer of changed value when updated via Javascript

I'm developing a wordpress theme that relies heavily on widgets for flexibility. I'd like to use the wp media javascript library to add images to some of these widgets instead of just having a text ...
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 ...
3
votes
1answer
856 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
1answer
544 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 ...
-1
votes
1answer
8 views

Media size on preview page [on hold]

In my previous post, my theme, Stargazer, showed a thumbnail of the media picture in the post preview on the "home" page. Todays post is showing it full size. I want it to only show thumbnail. How do ...
1
vote
2answers
645 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 ...
0
votes
1answer
22 views

What template is used for viewing Media Library Files?

I would like to create a special page template in my theme for viewing the media library files. Currently, when I click a Media Library image file I get a page template from the parent theme. Does ...
0
votes
3answers
213 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: ...
-1
votes
3answers
484 views

tb_show not showing a media upload window . custom plugin

I can't figure out why the media uploader doesn't show. I'm trying to do a media upload window so the user can upload a file. The problem is, when I click on the Upload button, nothing happens, the ...
1
vote
1answer
26 views

Is there a way to make my media files unsearchable?

I upload a lot of contracts, T&Cs, pdfs and audio file to my wordpress blog. I would like all of this content to be hidden from standard search engines. Is this possible?
0
votes
1answer
669 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 ...
0
votes
1answer
47 views

How to export a list of all media urls? [closed]

How can I export the list of all media files' url, So I can use it in some other documents?
3
votes
1answer
473 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 ...
-1
votes
2answers
23 views

Can't See Media Queries with Inspect Tool [closed]

all - I do not have the greatest CSS skills in the world, but I can normally figure things out. Right now I'm trying to implement a fairly simple media query in the child theme of my Wordpress site. ...
1
vote
1answer
31 views

PowerPress mobile media player

I am using the MediaElement media player for PowerPress, everything is working fine. The one thing I noticed is on mobile...affecting the podcast showing first. If you go to: ...
0
votes
3answers
915 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
1answer
435 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
27 views

Images problem in WordPress backend

After an attempt to backup an old version of WordPress in order to edit a theme, the images: Show a placeholder as a thumb in library. Can't be seen when edited. Don't show as featured images and in ...
0
votes
1answer
34 views

Display Powerpress media url

I am trying to display the url of a media file in a template. I ran across this post: https://wordpress.org/support/topic/get-media-url-only, but when I add that to my template (in the loop as it ...
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 ...
4
votes
1answer
737 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
27 views

Auto move media file to cloud

I have very little space to host my WordPress website. That is why I want all my media files are stored in the cloud like dropbox, google drive etc. For example, if a user wants to upload an image ...
0
votes
0answers
13 views

How can I force media that is uploaded on a HTTPS subsite to also have HTTPS URLS?

I'm currently using Cloudflare for my Multisite's SSL. Everything works perfectly except for the fact that images are loaded as HTTP rather than HTTPS. This causes issues such as these: Under ...
1
vote
0answers
19 views

Edit image results in copies of file being created

I am encountering what appears to be a file duplication issue when using the "Edit image" function. In this case specifically I am cropping the image but any edit process should have the same effect. ...
0
votes
0answers
19 views

Include images folder in theme that is accessible form the Media tab

Is it possible to include an images folder that is then accessible via the admin section. I am creating a theme and want some background images available for the user, since I can not include them in ...
1
vote
1answer
8 views

Is it possible to change filenames in media library after upload?

Having issue with å,ä,ö when moved to another host, so I have to change filenames where å,ä,ö exists. Is this possible or do I have to save all images with these characters and then upload them again? ...
0
votes
0answers
70 views

wp.media - media uploader - how to destroy instance of modal?

I have implemented a media uploader/selector with the wp.media object using the method described here. I am facing a problem having to do with large amounts of image files loaded into the modal from ...
0
votes
1answer
39 views

How can I serve a text file at a custom URL

I have a WordPress site installed at the root of the webserver: / I want to serve a text file from here: /.hiddendir/secondlevel/textfile I've created this file and directory on the server at ...
0
votes
0answers
18 views

Deleted media library images return broken image even after reassigning correct image

I use Genesis as well as Easy Recipe Plugin. Versions all current as of 3/17/16. In Media Library I deleted a number of images previously used in my recipe posts. I then updated featured image and ...
0
votes
0answers
16 views

How to get secondary image on blog page(reading->Posts page:) header

I have using "MultiPostThumbnails" and getting banner for all pages ut not getting for blog page when i have set (reading->Posts page). I have added this code on header. $current_page_banner = ...
0
votes
3answers
571 views

What is the structure of the “Featured Image” field in the DB?

On a WP install with about 1400 images and the Media Tools 1.1 plugin, I ran both "Import External and Set Featured Image" and "Set Featured Image". But the featured images functionality didnt work, ...
0
votes
0answers
12 views

wp.media mutliple file types

I want to show in library window all documents, which consists of pdf, doc, docx. It is possible to specify more parameters in library tag like library : { type : 'application/pdf'} Thanks
0
votes
1answer
33 views

Weird encoded error when using wp_generate_attachment_metadata()

I'm AJAX POST-ing images to Wordpress from another server and using a script to upload them into the Wordpress file system. I get a strange output/error for the AJAX response, which I've narrowed ...
1
vote
0answers
66 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
10 views

Is there a way to limit multi upload in media upload box?

What I'm trying to learn is to remove multiple upload (and drag&drop). I want a user (vendor) should be able to upload only one file when clicks on upload button. Instead of completely removing ...
0
votes
1answer
12 views

Limit attachment caption characters

I want to limit the characters a user is able to enter for the image/attachment caption. There are already long captions in the system and I don't wont to touch them. Any ideas on how to do this? I ...
0
votes
1answer
88 views

Too slow Image upload in Wordpress Media Library as image number increases

we are using Wordpress 4.4.2 and the Wordpress Media Library for media management. We have noticed that as media (images, not videos or audio) number increases, the upload process takes too long...and ...
0
votes
0answers
14 views

wordpress gallery captions

I'm trying to develop a simple content site with wordpress which requires a slider gallery with unique captions for each image within the gallery. $gallery = get_post_gallery_images( $post ); Using ...
0
votes
0answers
17 views

media image not showing after adding ajax google api

I have added a script in my header.php and ajax file <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script> <script>....</script> But due ...
6
votes
5answers
8k views

Upload images to remote server

I am using Wordpress media uploader to upload images and I was wondering if there is a way to make it upload to my remote server instead of my local server? Example: My wordpress blog is hosted on ...
0
votes
1answer
25 views

cant able to upload media to my wordpress blog

i am trying to upload an image for a post in my WordPress blog but it is giving error: “image.gif” has failed to upload. Unable to create directory uploads/2016/02. Is its parent directory ...
0
votes
1answer
6k views

upload featured image from front end using wordpress add media button

I want to submit custom post from frontend. i have made form to make this happened. But i want to upload featured image form add media button of wordpress. Code is <?php /* Template Name: post ...
0
votes
3answers
222 views

Upload images using FTP and show them in media

Hello, This weekend one of my websites was hacked and all photos was removed (the folder uploads). That means the images in my site doesn't work. :( I had a backup of that folder and I have recovered ...