An image, audio or a video comprises a media.

learn more… | top users | synonyms

0
votes
0answers
10 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 ...
3
votes
1answer
896 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
0answers
12 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
87 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 ...
0
votes
0answers
19 views

Error in custom image upload for a logo [on hold]

I am building a simple theme for myself, I added the options in the admin menu. But I get an error when I open the media uploader to upload my logo. I use this code: jQuery(document).ready(function() ...
0
votes
1answer
468 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
887 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
2answers
662 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 ...
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 ...
1
vote
1answer
566 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 ...
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
16 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.
0
votes
1answer
10 views

Change Wordpress Media Manager

On the previous versions the media manager was like this Newer Media Manager My Question is How can i change to the older version media manager ??
1
vote
1answer
126 views

Cannot embed YouTube videos “Failed to embed” error

I get this error on multiple WordPress sites I run, when I try paste a YouTube video or use the shortcode [embed]: This only happens with YouTube. Other media websites such as Vimeo has no problem ...
1
vote
1answer
26 views

Set spesific size of featured images

I am trying to reduce the loading speed of my webpage. Google PageSpeed Insights tells me to optimize my images. In the following code, how can I set an image size so that if the uploaded image is ...
0
votes
0answers
7 views

Using a separate image server with WP

I'm interested in figuring out how to use a public image server instead of Wordpress' root image directory for managing media on a new Wordpress site. Background: Client currently runs a blog with ...
1
vote
1answer
13 views

How to set the default embed image size

When a user adds media to the WYSIWYG, is there a way to set the default image size to large? It defaults to medium, I'd like this to be "large" without the user having to change the value.
0
votes
1answer
452 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 ...
0
votes
2answers
684 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
2answers
1k views

How to fix the orientation of images when uploading via the WordPress Media Uploader? [closed]

I've been using the Image Rotation Repair plugin to fix the orientation of images when uploading using the Media Uploader (some images taken on my camera phone are not rotated on upload, resulting in ...
0
votes
1answer
22 views

Can't get data from audio media

I am trying the get the data of an audio, I've uploaded to a Wordpress site I'm working on (Not my own). I'm quite new to WordPress, but as far as I know, media files such as images and audio is ...
3
votes
1answer
481 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
0answers
12 views

Trying to get the link to the media file image attachment to display in a lightbox

Tried many variations including wp_list_pluck with no luck. Not sure how to proceed. <?php $attachments = get_children( array( 'post_parent' => get_the_ID(), // $pageChild->ID, ...
0
votes
0answers
12 views

using session var to filter author media gallery

I got a problem to solve and would like to know if I'm looking the right way to solve this. I have a site where multiple authors can upload images and they all have a profile page (author.php) where ...
0
votes
1answer
20 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 ...
0
votes
3answers
947 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
22 views

Shortlink directly to a media file?

We have a nice short domain name, but links to media files are way too long because the file names are long and you have the extended path for WordPress media. Like so: ...
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
2answers
40 views

Upload images and attachments from frontend form

I'm not very expert of wordpress and I'm trying to create a frontend form sending information to my php function through ajax. I'd need help about uploading images and files as attachments of the ...
0
votes
0answers
13 views

Controlling visibility of files in the Media Library?

A part of the site I'm currently working on includes an expenses section where the user can upload expenses and attach files to them. This is currently achieved through a custom post type using an ACF ...
1
vote
1answer
32 views

pass query string on url to filter media

I have an author page which shows all uploaded media by that author. Each media can have tag1, tag2 or tag3. I would like to add an option where I can show on that same page only tag1 media without ...
1
vote
1answer
451 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
11 views

Basic HTML visual editor for image captions

So, Wordpress 3.4 and beyond now allows html within the Caption field of an image. However, there isn't the basic visual html editor attached to the field. Is there a way to turn on the basic html ...
0
votes
0answers
7 views

Change permalink to attachment gallery post and redirect parent post

I have a problem with the photos attached to another article Example: **Photo1** attached in MyPost1 **Photo2** attached in MyPost2 **Photo3** attached in MyPost2 **Photo4** attached in MyPost3 ...
4
votes
1answer
768 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 ...
-1
votes
3answers
475 views

Moving Categories submenu to Media, but still opens Posts menu

I'm developing a very media-centered site with WordPress and am using the default categories and tags on uploaded media using, in part this plugin Media Categories. I am displaying a sub-menu item ...
1
vote
1answer
26 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 ...
1
vote
3answers
55 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 ...
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
10 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 ...
0
votes
1answer
28 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
248 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
545 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
29 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
54 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?
-1
votes
2answers
26 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
32 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
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
36 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 ...