An image, audio or a video comprises a media.

learn more… | top users | synonyms

0
votes
1answer
58 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 ...
1
vote
0answers
20 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
11 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
110 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
0answers
33 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
1answer
65 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
19 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
0answers
16 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
53 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 ...
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
17 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
0answers
15 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
1answer
139 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
21 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 ...
0
votes
1answer
28 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
0answers
17 views

media_handle_upload adds unnecessary extra records in wp_posts

So I created a form to have a user create or edit a post: title, metadata and an image. I use this to update the title: $my_post = array( 'ID' => $post_id, 'post_title' => $...
0
votes
1answer
28 views

Media items hogging pretty permalinks

I have a WordPress installation setup but I'm having trouble with items uploaded to the media library taking up pretty permalinks. The only way to fix it that I've figured out so far is to delete the ...
1
vote
1answer
47 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="...
0
votes
1answer
37 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
0answers
18 views

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

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
1answer
86 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
186 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 ...
13
votes
1answer
219 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 <img> tag as data-* attributes Example: <img src="..." data-my_setting="..."...
0
votes
1answer
43 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
21 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 ...
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
11 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.
0
votes
1answer
27 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
26 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
0answers
44 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
0answers
26 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
13 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
0answers
121 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
0answers
36 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 I'...
0
votes
2answers
51 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
17 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
199 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
71 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 ...
2
votes
1answer
52 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
1answer
30 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
154 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
75 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. ...
3
votes
1answer
172 views

Is is possible to crop an image after uploading

I'm trying to build a plugin, and part of it requires to upload (or choose an already uploaded one) an image, and when it's done uploading to crop it (a bit like how you change a header image in the ...
1
vote
1answer
277 views

How to show all available images in WP's media library when using the Polylang plugin?

It seems that depending on which default language I've set Polylang to, all my uplaoded images are isolated so that I can only pick them when I'm editing posts in the default language. I have a lot ...
0
votes
0answers
19 views

Submitting data to options.php from category admin page

I have created a new image field in Category taxonomy page which selects image using WordPress media up loader. Now I want to save the path of image and category name in wp_options table. I have ...
0
votes
1answer
97 views

display custom media folders to wordpress media popup

I have plugin "Maxgalleria Media Library Plus" in my wordpress site, where I can organize my images in different folders.When I look via FTP, in the uploads directory there are all folders I have ...
0
votes
0answers
13 views

Post links behaving weirdly after migrating DB to Amazon

I have partially successfully migrated a local DB for a WordPress site I was working on. I imported the new DB using phpmyadmin and move the template and seems to be working fine. The only thing that ...
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
0answers
54 views

Add Media button for Author does not have permission error

I'm working on a front-end form plug-in and have an issue with image uploading via Add Media button. I have tested with an author account and it's giving me an error message You don't have permission ...