An image, audio or a video comprises a media.

learn more… | top users | synonyms

0
votes
0answers
4 views

How to manage assets in gigantic multi-page website?

I need to manage assets in Wordpress dynamically. When I mean assets, I don't mean the media (videos, photos, sounds). In my website, I have custom posts that can get customized with icons, banners ...
0
votes
0answers
5 views

Add/change multipart_params parameter when uploading post image

I'm working on plugin that optionaly manipulates uploaded content (images). I managed to add some additional fields on "Insert media" popup under "Drop files anywhere to upload" text, but I need to ...
0
votes
0answers
7 views

Rotate image media item 90° anti/clockwise ajax front end function?

Is there a rotate image function that I can create a button on the front end of my website, using ajax inconjuction with the id number of the media item? I'm thinking having 2 buttons, rotate left ...
1
vote
0answers
23 views

How to trigger a refresh in the media modal

I'm developing a plugin that adds a new tab to the media modal, and I need to know a way trigger a refresh of the attachments tab so it shows newly added attachments. This is the code I'm using: ...
1
vote
1answer
26 views

Increase Size Limit of Media Files Wordpress 4.1

I have edited (created) the php.ini file and the .htaccess file in accordance with this post. I have also found a plug-in (called Upload Max File Size) that claims to raise the file size limit of ...
2
votes
0answers
37 views

Insert Images at Master Uniform Height

I'm trying to figure out a way to insert images from the media library into the post editor at a uniform height... but by selecting one option. For example, I set a height like "300" somewhere (like ...
3
votes
3answers
75 views

Stop WordPress from reserving slugs for media items?

I am experiencing some odd behavior, that apparently happens "out of the box" with WordPress. If I upload a file through the media manager called: services.jpg; then go try to create a page with the ...
0
votes
1answer
14 views

Customize WordPress Upload Directory

I'm trying upload certain files to the following custom director: /wp-content/uploads/audio/yyyy/mm However, the year and month directories are not being created properly. They are showing up like ...
0
votes
0answers
34 views

Switch to the library tab in the media uploader

I'm developing a plugin that adds a tab to the media uploader to add external videos to the media library via oembed. Everything works as expected but I need to switch to the library tab after adding ...
0
votes
0answers
18 views

Media Library broken images

When I upload image to WP they randomly appear as broken links I can drop the files on the Media Library or Select the files and some files are always shown as broken. I can delete the files and ...
0
votes
0answers
5 views

media_handle_sideload duplicating images

I'm using media_handle_sideload() to copy featured images for news stories to local Media items. But the trouble I'm having is that when doing so, the function seems to be creating duplicate entries - ...
0
votes
0answers
14 views

Force relative path in media library for LAN deployment

I have created a Xampp powered local wordpress install. This will be used at my work as a sort of "intranet" using LAN - I have no intentions of deploying it on a server, as it is not required by what ...
0
votes
0answers
11 views

Is it possible to use media_sideload_image to upload local files?

I want to add media_sideload_image to upload a file programmatically . I've got it working when the image URL is online (e.g. http://etc...) but not when it's a local file from my hardrive or network ...
0
votes
0answers
15 views

Automatically attach image to post if they have the same title

I have 200 images in my WP install. Currently, each image... has its own post (the post title is the same as the image title) is the featured image of that post is inserted into the post ...
0
votes
0answers
16 views

How Can Make Slug Editable in Edit Media?

Default wordpress is allowed to change only last part of attachment permalink. But with some seo reason and duplicate word problem i want to make slug editable. There are any way to make slug ...
0
votes
1answer
64 views

Correct Post Count ( All | Published | Drafts | Pending | Trash ) for Custom Post Type when restricting to view own posts

I want to restrict users in wordpress to view their own post and media items only. Following the steps given in the below link I have developed the plugin to restrict users to view the own posts and ...
0
votes
0answers
37 views

WP media manager in metabox to choose all media types

I'm trying to make a metabox for featured media on my posts, and would like to use the Media Manager like it is used in the editor, which is with all the options. I've tried this and similar things ...
0
votes
0answers
16 views

New tab on featured image modal

I need to add a new TOP tab on the media upload modal. I tried with the media_upload_tab hook but is not working because it simply add a new tab on the modal's sidebar that is showed only when you ...
0
votes
1answer
21 views

Upload images using FTP and show them in media

Hello, This weekend one of my websites was hacked and all photos was removed (the folder uploads). That means the images in my site doesn't work. :( I had a backup of that folder and I have recovered ...
1
vote
2answers
62 views

Maximum upload size changes in php.ini ignored - How to remove upload size limit?

I'm working on a multisite WP installation and I need to import content from other Wordpress sites (.wxr files). When I use the Import WordPress plugin I got the following: The maximum allowed ...
0
votes
1answer
27 views

Media Manager: refresh library after new selection

I have created a custom field into a metabox with a button that opens up the media manager and allows the selection of multiple images. On the "open" event, the gallery retrieves the images IDS of the ...
0
votes
1answer
12 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
40 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
34 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
54 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 ...
2
votes
1answer
29 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
13 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
51 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 ...
0
votes
0answers
7 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
20 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
23 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
30 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
16 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
25 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
0answers
38 views

Media Library is not showing Thumbnails

When I use wp_insert_attachment() to upload the image in Media Library, I got a broken thumbnails. But it is giving me correct URL in URL field. And if I am using that Image in my post/page , it is ...
0
votes
1answer
29 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
11 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
28 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
28 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
83 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
18 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
17 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
22 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
13 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
161 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
22 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
45 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
25 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
73 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
16 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 ...