An image, audio or a video comprises a media.

learn more… | top users | synonyms

0
votes
0answers
2 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 ...
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 ...
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
25 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
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
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 ...
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 ...
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 ...
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.
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
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
0answers
16 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
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
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 ...
-1
votes
0answers
26 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
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
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
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
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 ...
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
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. ...
3
votes
1answer
75 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
43 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
15 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
35 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
12 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 ...
2
votes
0answers
177 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
26 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 ...
3
votes
1answer
40 views

Ignore a filter on the media library

As per my question yesterday, I need to exclude all images from most of my WordPress queries - yesterday, I thought I needed to exclude them from all queries, until I came upon the following issue. ...
1
vote
2answers
26 views

How to compress image before inserting to wordpress using wp_insert_attachment function?

Is it possible that when user submit multipart form for creating a new post in wordpress, all the images are inserted using wp_insert_attachment() to media library with compression so the uploading ...
0
votes
0answers
17 views

Detect when media select input field has been populated in a plugin

I have some code in a little plugin I am trying to make that allows a user to select an image to use : <input type="text" name="thumbnail_adr" id="thumbnail_adr" class="regular-text" ...
0
votes
0answers
9 views

Change URL of Media

I'm not sure if this specific question has been asked so here goes. We uploaded 50k images and all is well. We run the site through cloudflare and added a CNAME of http://i.mydomain.com which goes to ...
0
votes
1answer
23 views

limit media upload to once a day

Is there a way (with hook or plugin) to limit media upload to once a day per user? I can only find related articles about limit file size. Edit: The reason I want to use this is I'm setting up a ...
0
votes
0answers
14 views

Hooks after media is saved

Is there any hooks/filters that fires when user already uploaded image/video . Thank you
1
vote
0answers
25 views

How To install AWS SDK for PHP in wordpress?

I am going to install and use AWS SDK for PHP to facilitate uploads/list objects directly from the front-end of my WordPress instance to S3. What is the best practice to do that ? P.S: I don't want ...
0
votes
0answers
8 views

How to limit the access of each user just to his own uploaded files Amazon S3?

In my Wordpress website Users can upload video files directly to the Amazon S3 bucket from the front-end, how to limit the access of each user just to his own uploaded files and not the other users ...
0
votes
0answers
75 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 ...
0
votes
0answers
17 views

Re-organise uploaded media

I don't know if this question has been asked before here, so here it goes. Can i re-organise uploaded media into years/months folders? Up to now i wasn't using this and now it got to the point where ...
0
votes
2answers
37 views

Find unused images?

Is there a reliable up-to-date way to find media that resides on the server but is not used in the WP site? I have found a number of plugins, but all are very old, with lots of negative comments to ...
0
votes
0answers
12 views

Save & echo Image in Input - Admin seting page

in functions i have user code create fields get image url add_action('admin_menu', 'baw_create_menu'); function baw_create_menu() { add_menu_page('PH Plugin Settings', 'PH Settings', ...
0
votes
0answers
18 views

Extra metadata for media items

I've made a plugin that allows me to create thumbnails in the media library grabbed from youtube based on a code. Ideally I would store the code as metadata with the media library item. However, I ...
0
votes
0answers
43 views

Caption description in tinyMCE editor

I posted this on the hacks forum of Wordpress a week ago but it seems no one is able to help me there. I'm currently customizing the captions for a client, and I have two separate problems that I ...
3
votes
1answer
78 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', ...
0
votes
1answer
27 views

Customizing individual images on posts

So I'm trying to customize the output of single image in my posts, adding custom divs and classes. I found a good tutorial online here - How to wrap every image in a post with a div? The function ...