An image, audio or a video comprises a media.

learn more… | top users | synonyms

0
votes
0answers
9 views

“window.send_to_editor” only called in Wordpress thickbox/media-uploader if “insert into post” is clicked, not “save” button

I am using WordPress's media uploader by using the javascript: function handleMediaUpload(button) { //Enables returning the URL to input window.send_to_editor = function(html) { ...
1
vote
0answers
7 views

Media Library empty after server move (exact copy of files and db's)

After exactly copying both all the files and the database of a site over from an old server to a new one with the same URL (granted, DNS has not been switched over yet but not sure if that has any ...
1
vote
1answer
18 views

Filter Media by Featured on Admin

Usually we can filter images in Media > Library by: date by MIME type, and by attached/unattached files ...but I'd like to expand this to a filter by Featured images. This way, we could filter ...
0
votes
0answers
11 views

Embed button for post screen

i would really appreciate it if someone could help me change the "add media" button on the post screen, and make it rather go straight to "insert from url" so that my users embed a link without ...
0
votes
1answer
16 views

Why would media_sideload_image() not work locally?

I designed a theme for a client that sideloads an image returned from an API. It has always worked and it's still working on their live website. My staging environment used to be a separate account ...
0
votes
0answers
17 views

Reload or Refresh Wordpress 3.5 Media Manager

I was wondering if it is possible just to reload or refresh the new 3.5 Media Manager. I am currently running into a problem where I want to add new tabs dynamically but they are only added once I ...
0
votes
0answers
25 views

File Not Found error returned when trying to access Media Library in Wordpress 4.2. Plugins cannot be installed either

Please help me figure out how to access my media files through the admin dashboard. All media files are present at the server level. I can upload a file through the admin dashboard, but cannot see ...
0
votes
0answers
19 views

How to use uploaded image as custom field in front-end and don't attach the image to the post

I am trying to make a custom field to allow user to upload image in front-end and the uploaded image url is going to be the custom field value. how can I do this ?
1
vote
1answer
18 views

Filter for Media Library

I want my users to apply a filter in Photoshop every time they upload an image. Naturally, people are forgetful so I want to remind them of that in the Media Library Screen. I search around which ...
1
vote
2answers
44 views

Hide old attachments from wp media library

I am trying to limit the files that are shown in the wordpress media library popup (from wp_editor). Currently every single file that I have ever uploaded to my site is shown in the library but I ...
1
vote
0answers
34 views

How to delete uploads not in media library?

How to delete uploads not in media library? I have lot of images in my uploads folder but doesn't in media library. Exist some method how this do it?
0
votes
0answers
33 views

Bulk Edit Media Including ACF/Custom Fields

I have two main questions but here's the scenario. I run a festival website. Photographers will upload photos to the site. They will need to relate it to an Artist and an Event, so when viewing the ...
0
votes
0answers
12 views

Why wordpress can't generate metadata of big images

I have the following upload routine (compact): $movefile = wp_handle_upload( $file, $second ); ... $attach_id = wp_insert_attachment($attachment, $filePath); $attach_data = ...
0
votes
0answers
5 views

Wordpress Taxonomy Filter always show nothing

I have currently the following problem: I registered a new Taxonomy (called 'mediacategory'), but I got some problems by creating a filter. The script is working with the default taxonomy 'category' ...
0
votes
2answers
12 views

media_handle_upload : undefined function?

I have been working with a front end upload and post creation script. For some reason calling the media_handle_upload function from my project-save.php file is returning as an undefined function. Is ...
0
votes
0answers
17 views

How can I copy attachment in multisite without duplicating media

In Wordpress multisite, I need to copy post from one blog to another. No problem there. Now, each post have some attachment linked to it. I can copy attachment too, but it will store the same media in ...
0
votes
0answers
14 views

Loading a different theme stylesheet for mobile

So I'm trying to have a different theme stylesheet load for mobile devices. This isn't really for styling, but for the combining of style sheets; I don't need all of the plugins on the mobile version. ...
0
votes
0answers
58 views

PHP upload multiple files with different input field names using media_handle_upload

I'm trying to upload multiple images with different names from input fields on my WP site. The images will be attached to the post as metas. postThumbnail will be the post's featured image and ...
0
votes
0answers
35 views

Wordpress Media library not displaying images

Last week i have updated wordpress, but some how after update media library stopped working. It uploads image but images but not showing on media library popup. I tried to inspect requrest ...
1
vote
1answer
17 views

Removal of Media Gallery pictures

When I delete pictures from the media gallery ,does it delete the photos from the post that has been published?
0
votes
0answers
13 views

image alt text in url opens image in wordpress yoast seo issue

Strage issue on my site. The text in alt tag when placed in the url like http://sitename/pagetitle/alttext opens the image on http://sitename/pagetitle page causing issue in the seo :( Simply the ...
0
votes
0answers
15 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
17 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 ...
2
votes
1answer
43 views

Different upload path per file type

I want to have two different paths for different files. For example, I have all .zip and image files all in the same locations. What I am wanting to the have images in one path (eg. ...
0
votes
0answers
11 views

Filename and Extension Gone! Media Upload

Since last night when I try and upload an image (say example.jpg) wp removes the filename and file extension so that it shows up as the following in both the uploads directory as well as the metadata ...
0
votes
1answer
27 views

How to make caption field required in media library?

Hi, my question is easy. I don't know how to make the caption's textarea required for user. Is it possible to do this? Thank you.
1
vote
0answers
23 views

wp.media add context

I have wp.media frame on my plugin to upload doc, docx file. I am filtering the uploaded file. If uploaded other than supported file, it will display this error I am filtering it at ...
2
votes
1answer
30 views

Disable drag and upload in Media Library

Does any one knows a valid/standard way to disable drag and upload when accessing the media library in the admin area? In order to make this sense to you, I'm building a multisite and user of sub-site ...
0
votes
0answers
24 views

Issues with Wordpress 3.9.6 media libraries on XAMPP

I am having issues with the media library of Wordpress on my local Xampp installation of Wordpress 3.9.6. Uploading files to the media library takes a long time and occassionally fails. However ...
0
votes
0answers
39 views

Accessing - Media - Attachment Display Settings - using wp.media

I'm trying to get options from - Attachment Display Settings - in my mg-media.js Trying to get selected size from user in mg-media.js. Here is, mg-media.js fn = wp.media.frames.fn = ...
0
votes
0answers
16 views

Update wp.media state (mainly order) of images in Add Media Modal

I have to mimic a feature that was part of Wordpress 3.5 but was removed in Wordpress 4.0. When I am seeing the files uploaded to a post in the Add Media Modal, if I chose "Uploaded to this post", I ...
0
votes
1answer
23 views

Adding .mov files (not from YouTube)

Brand new to WordPress. Using it from GoDaddy and when I try to upload my video .mov file (it's only 10MB) I get an error saying it's not a valid media type. Any ideas? Thanks.
1
vote
1answer
143 views

WordPress Built In Dialog Box For My Plugin

I need a modal box like media upload in post edit page. but in that I just need to insert a html form using AJAX call .. I tried to get the output, but I cannot, so I tried ThickBox and I got the ...
0
votes
0answers
29 views

Auto upload images from server directory to media library

I used the code below for auto upload the images, how to check if image exists don't upload it. function WPSE_1595_image_post() { // We need to use the default uploads dir $wp_upload_dir = ...
1
vote
1answer
52 views

Massive photogallery import

I have this scenario: about 200 photo galleries to recreate in Wordpress from an old wordpress site. All I have is the .xml WXR for the post_type "photogallery" that basically creates the gallery and ...
0
votes
1answer
47 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 ...
1
vote
1answer
70 views

“Add Media” only shows “Full Size” under Attachment Display Settings

I can't seem to figure out why this dropdown is only showing "Full Size" as the option. I have the default "thumbnail", "medium", and "large" set in Settings, and I've also added a few custom sizes in ...
0
votes
1answer
34 views

wp_enqueue_media() and upload_mimes problem

Using the following code, I'm trying to allow only certain image types to be upload/selected with the WordPress media API. So I'm using add_filter on upload_mimes to restrict the mime types allowed. ...
0
votes
1answer
20 views

Extending the “Add Media”-Dialog … how do I finally insert something to the Post?

I'm developing a plugin, which extends the "add media"-Button in the Post-Editor. I found an example (I think it was nextGen Galley maybe) where wp_iframe is used in the add media dialog. For some ...
0
votes
0answers
35 views

Why can I not paste an image from the clipboard?

At some point, I remember being able to paste images from the clipboard straight into my post as I was editing. This no longer works. I just upgraded from 3.something to 4.2.2 to see if that would ...
0
votes
0answers
92 views

get_attached_media() returns empty array if media file already used by another post

I wish to retrieve the different PDF and ZIP files attached to a single post and display them in a specific section, outside the content, using the WP function get_attached_media(). While my code ...
11
votes
1answer
682 views

For what security reasons are svgs blocked in the media uploader?

I see that SVGs are blocked by default in the media uploader and you have to add it as a supported MIME type in functions.php. What security reasons are behind this?
0
votes
0answers
59 views

Disable edit media for non-admin

I am using WordPress 4.2.2 and I am the site admin. I want it so my registered users can't edit media like images. How can I hide this edit option for users (non-admins)? See yellow circled button in ...
0
votes
1answer
21 views

How to prevent intermediate images from being created but keep the sizes available for selection in the media library?

I am writing a plugin that will make use of an image service for resizing images. I want to keep the ability for users to select different image sizes, but I don't want Wordpress to create ...
0
votes
0answers
57 views

How do I create a custom add media button modal?

I've created a custom media button for the admin in editing posts, but am having trouble figuring out how to create a view for the modal. I'm not trying to insert uploaded media; I'm trying to allow ...
4
votes
1answer
92 views

Slow wp_enqueue_media()

I have developed a WordPress plugin for my site that utilises the WP Media uploader to store files... To do this my plugin contains the following code: function enqueue_scripts() { ...
0
votes
0answers
24 views

use plugin to copy media files from primary site to another network site

I have developed a plugin (specific to our network) that will copy certain posts from siteA to siteB. I can handle everything except the images which look to be specific to one site via the media ...
0
votes
0answers
18 views

Loop media by “uploaded By”?

I have a webpage that I want to display images that are uploaded by a certain author. In the backend if I look at media, each image has an 'Uploaded By' attribute, and then it says the authors name. ...
0
votes
2answers
136 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 ...
0
votes
0answers
25 views

Post comments getting added to unrelated media, not post

I'm in the process of setting up and testing a new WP install (this is my first time setting up my own WP site). With a test user I added a comment to a post. After refreshing the post page a few ...