An image, audio or a video comprises a media.

learn more… | top users | synonyms

0
votes
1answer
8 views

Open Media Uploader Link in single post or page

I want to open the media Upload Window like in a single post or page. It is important for me, to have that menu on top, which filters the media Library: This is my current code, which allows only ...
0
votes
0answers
12 views

Failed media upload: “The uploaded file was only partially uploaded.”

I am running Linux CentOS 5.8 and I have my web pages using WordPress 4.0. I am trying to uplad jpg photos to server via WordPress, but it randomly fails. I uploaded few photos, and then I get ...
0
votes
1answer
13 views

Upload mobi and epub file in the MEDIA of WP

How can I upload mobi and epub files in the MEDIA of my WP site? I want customers to be able to download my ebooks in the epub and mobi version also, not just in PDF !!! I know there is an HTML code ...
0
votes
0answers
50 views

Access post_type from url inside media modal window

In the new post screen of a custom post type i.e. wp-admin/post-new.php?post_type=product you click add media button and it brings up the media modal. You can add custom functionality to thise via ...
0
votes
0answers
28 views

HTTP error on media upload (WP 4.1, Minamaze Theme) [on hold]

I'm desperate, folks. Total newb for everything scripting, but getting an HTML error when uploading a JPEG in WP 4.1. I'm running Minamaze. I didn't have any problems with this until a few weeks ...
2
votes
1answer
24 views

Organizing media uploads

One of my clients wants to transfer his WordPress website to my server. The problem is his website doesn't use sub-folders in his upload folder, and he has more than 1,000,000 files in the root of his ...
0
votes
0answers
4 views

Set featured image using wp_insert_post

// Auto post ( Unique File Date ). $postData = array( 'post_category' => array( $Category ), 'post_status' => $Post_Status, ...
2
votes
1answer
37 views

Run script after clicking Set Featured Image in Media

I would like to run some script to get the featured image's width and height after the user clicked 'Use Featured Image' button and use the data retrieved within the Post Edit screen. Is there such ...
-1
votes
0answers
11 views

Does such a plugin exist? Email via MailChimp on file upload? [closed]

I use MailChimp quite a bit with school sites where parents can subscribe to school communications based on their year group. One client was under the impression that the site I'd created her ...
0
votes
0answers
6 views

Media upload privelages have been disabled for administrators - any ideas?

I have a nearly finished installation of Wordpress that was working fine. Then at some point the permissions for uploading images died for Administrator statuil. Details are: The issue: - I first ...
0
votes
1answer
14 views

Automatically Insert Into Post when uploading Media

When files are uploaded, I would like the, to automatically get inserted, bypassing the need to click on the "Insert into post" button I use WordPress Multisite 3.5 I tried the following, but it ...
0
votes
1answer
19 views

How to retrieve images attached to post through media library?

I have been struggling to retrieve image attachments to specific post without success until I found that images inserted into the post via media library are not treated as attachments. That is, you ...
0
votes
0answers
19 views

How to change existing image links to go to Attachment Pages?

Currently, all the images on the posts are linked to their parent post pages so that when you click on an image, it'll try to to go to the parent post page. But due to a recent Permalinks change, it ...
0
votes
0answers
8 views

Change categories count to include media attachments

I am creating a gallery that will automatically display new images from a chosen category and its subcategories. I have set up the categories so that they will apply to media using: ...
0
votes
0answers
11 views

Can't access to my multimedia library, and shows blank page

When I try to access to my library multimedia page, it shows a blank wp-admin/upload.php page. I can still add images through the Media > Add New menu option and I haven't installed any plugins since ...
0
votes
1answer
20 views

How would I get this to work - send to post from thick box

I have the following javascript which talks to about 6 elements. The first three open a thickbox for media upload and what not upon clicking on a specified button, the last three target the input ...
0
votes
0answers
7 views

get image original directory path when select from wp_media

When i select an image, lets say from drive D:/images/01.png from var custom_uploader = wp.media I need this path D:/images/01.png. when i select an image this functions trigger ...
0
votes
0answers
24 views

Image URL clashing with Page URL

I have been using the same structure on this site for a long time and it has never been a problem, so I'm not sure why it has become a problem now: If I have a page URL www.example.com/sedan-cars/ I ...
0
votes
0answers
15 views

wp media popup close all popup

I am having a problem, regarding wp media popup, I am using a thick box for some data insertion. Now from that thick box the media popup is callled. Now from media popup when I click on 'insert into ...
1
vote
0answers
42 views

Custom media picker in meta box: how to select available image sizes?

I have a custom meta box where a user can select an image and save it using wordpresses media picker, set up with some JavaScript. That works fine, but I'd like the option to select which version of ...
0
votes
0answers
8 views

Move files from Uploads directory to Media Library

I have an upload form using the gravity forms advanced uploader. My uploads are sent to the wordpress upload dir (upload/gravityforms/2015/01) where 01 is the month I want to move these files to the ...
0
votes
0answers
13 views

set media description, post title and alt text programatically

How do i set set media description, post title and alt text programatically? http://codex.wordpress.org/Function_Reference/media_sideload_image provides an example on how to set the description ...
0
votes
0answers
17 views

add media to custom folder

Hopefully its a simple question for more experienced Wordpress programmers. I am using <?php media_sideload_image($file, $post_id, $desc); ?> However this function adds the media with a ...
1
vote
0answers
12 views

Limit filetype and wp media

This is my input markup: <div class="button-primary" id="fileToUpload">Upload</div> This is js: jQuery( '#fileToUpload' ).click( function() { var custom_uploader = wp.media ({ ...
5
votes
1answer
142 views

Rendering the uploaded file in a wp.media object

I have seen this question asked a few times on SO and I don't see any responses. I have a wp.media object (upload dialog), that I am using in to store an upload to a post as a meta element. It works ...
0
votes
1answer
20 views

Reattach media after moving to another server

I moved WordPress from one server to another and imported everything with the standard WordPress importer. As there are a lot of posts and about 10000 images and videos, I uploaded them with FTP. ...
0
votes
0answers
41 views

WordPress media uploader - upload tabs not hiding

I'm in the process of adding a front-end post editor to one of my sites. In doing so, I need to prevent certain users from being able to upload media. I have things "kind of" working but there are a ...
0
votes
0answers
16 views

How to open full Media Editor in a frame

I'm oppening media editor with this code jQuery(document).ready(function($) { var frame; var id; // Build the choose from library frame. $(document).on("click", ".upload_image_button", function() { ...
1
vote
2answers
50 views

How to get an image url from media library

I have got an attachment id, but I need an url. How can I get an url from the attachment object? // When an image is selected, run a callback. frame.on( 'select', function() { // Grab the ...
1
vote
0answers
13 views

Images uploaded to the media library has strange colors. However, in the edit screen the color is ok

This is a strange issue that I've never encountered before. When I upload this image to WordPress' media library, it comes out like this (image on the left): This is also how the image appears on ...
1
vote
2answers
37 views

What relationship determines which images appear in 'uploaded to post' in edit/add post media dialog

I would like to know which relationship in the database determines which images are displayed in the media dialog when you select 'images uploaded to post' as the search filter. I thought it would ...
1
vote
1answer
95 views

upload_async.php returns 500 error

When uploading a large file via the Media uploader, I get the infamous HTTP Error problem. I also have the following in the Chrome console: POST http://www.nameofsite.co/wp-admin/async-upload.php 500 ...
0
votes
0answers
33 views

Filter media attachments by post in Media Library

Were working on a small plugin to allow attachments in the media library to be filtered by the post that they are attached to - and the basics are working: You can see the full code hosted on github ...
0
votes
1answer
33 views

How to get the correct URL on my wordpress site?

I have an existing website, which I want to move to wordpress, while keeping the same domain name/ URL's used in the old version. So far I have installed wordpress locally, and am migrating the site ...
0
votes
0answers
49 views

Add custom field to edit media WP 4.0.1

I try to add a custom field for media edit from WYSIWYG. But the attachment_fields_to_edit filter does not add the field on the edit popup. When you click on a image and then click on the edit icon. ...
0
votes
0answers
29 views

media_sideload_image uploads an image multiple times!

i want to upload an image programmatically into wordpress media library and then attach it to a post! i found media_sideload_image function in wordpress codex but when i use it in functions.php file, ...
0
votes
1answer
112 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 ...
2
votes
3answers
80 views

How do I go straight to “Edit More Details” when clicking on an item in the media library?

By default, when I click on an item in the media library, it takes me to the Attachment Details page, e.g. .../wp-admin/upload.php?item=65. What would I need to edit to make it go straight to the ...
1
vote
0answers
17 views

How to get the last selected media alignment setting?

The default media uploader for inserting into a post retrieves the last selected alignment setting that was used. How do I retrieve that for use in my plugin?
0
votes
1answer
36 views

Post Type Upload Directory - {post_type}_upload_dir filter

I'm working with modifying the upload directory depending on which post type is being uploaded to. I've ran across this question: Post type specific upload folder in 3.5 and one of the lines confused ...
1
vote
1answer
45 views

Change wp-content/uploads to uploads/%postname%/%image%

When uploading an image to a post, I want to change it so that it grabs the postname or post_id and places it in a folder like uploads/%postname%/ Is there a simple method of doing so? thanks
0
votes
0answers
146 views

Wordpress media library (in GRID VIEW only) is not showing thumbnails

I am using a bit of code, that deletes the unneccessary full images after uploading and adding different sizes and then sets custom sizes. The crazy thing is, the other media gallery view is working ...
1
vote
1answer
105 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 ...
0
votes
1answer
24 views

Elegant way to signify inheritance and relationship between posts

Let's say I have a weekly podcast, that I use WordPress as my CMS, and that I use LibSyn to host my media. This podcast is one hour long, and includes several "special" content segments that I also ...
0
votes
0answers
17 views

How to change where WordPress is looking for uploaded files?

I have a multi-site setup. My main site's theme changed the uploads folder to /media, problem now, is I added a subdomain site, and when I upload a file, it still uploads to /media, and wordpress is ...
0
votes
0answers
125 views

Media Player gone on front end

This seems to have happened since the WordPress 4.0 upgrade (I think). When I use the "Add Media" button for an audio file, I can see the player in the WP backend, and it functions. But it doesn't ...
0
votes
0answers
48 views

Why does uploading a media file a second time restore older version?

Sometimes I wish to update a media file, but when I Delete Permanently from the library, and then upload the same file a second time, instead of getting the revised version, I instead recover the ...
0
votes
1answer
58 views

Insert Image automatically when upload finishes wordpress media uploader

What I am trying to do is - 1) User clicks "Add Media" 2) Select an image 3) Image uploads finishes 4) Now it should insert into post automatically without pressing "Insert into post". Anywhere ...
0
votes
2answers
127 views

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

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 ...
2
votes
1answer
119 views

Wordpress Media mime type filter problem 4.0

I have added new mime types with the 'post_mime_types' filter eg. PDF, doc, mp3 etc... Filtering by custom mime type on the upload.php page in media grid view works as expected but in list view it ...