An image, audio or a video comprises a media.

learn more… | top users | synonyms

0
votes
0answers
10 views

Attachment Filter not displaying correctly in Media Uploader

I'm working on a plugin that uses the Media Uploader. Everything's working fine except for one little thing. When rendering the Media Uploader Modal box, it shrinks the Media Attachment Date Filter ...
0
votes
0answers
9 views

Get post attached in sequence

I'm trying to do a reader, that will take images that are attached to the post.Kinda like a comic book reader, which has a button to the next image. However only saw snippets that show to catch the ...
0
votes
0answers
11 views

Enhance-Media-Manager-For-Gallery

Enhance Media Manager for Gallery I used the example and the html template is rendering fine, however no attribute for type is added to shortcode in page content. So I believe the JS is wrong. Help? ...
0
votes
0answers
5 views

How to connect media files to links from posts?

I'm having a hard time figuring this one out. I have a website being transferred from a totally different platform. It has over 2000 posts and the hold over 10000 images. I have managed generating ...
0
votes
1answer
12 views

Edit image itself

In the back end in media library when i edit image it allows me to edit almost every thing except the image it self or the image source, so how to change the image source without changing the id of it ...
0
votes
0answers
16 views

How to toggle between playlists in Wordpress post using jquery?

I am using 4 playlists using Wordpress inbuilt audio playlists. I have 4 individual buttons to toggle between playlists. That also working. The problem with what I am facing is, the previous playlist ...
0
votes
0answers
11 views

Media Library, Files not displaying once uploaded. Recent problem

have spent past two days trying to troubleshoot problem with uploads to Media library. In fact, things are now worse than they were yesterday, when at least they were present in edit mode. Since ...
0
votes
0answers
14 views

Cropping image results in image being too small

This is the wordpress version 4.2 powell I crop 1500 x 1000 and then press on crop, then save. Resulting image size: 1497 x 1000 I don't know, I somehow hoped that wordpress is able to bloody ...
0
votes
0answers
14 views

No file when adding media directly to a post

I am working on a plugin to do some processing of uploaded images. The code below works fine when I upload an image using the media library. However, when I try to upload media directly into a post ...
1
vote
0answers
10 views

How to allow logged out users to upload media?

How do i allow non logged in users access to the media library for uploads? I am making an anonymous blog, i got posting with images to work, but i need the media button above the editor to work so ...
0
votes
0answers
8 views

Nothing works with integration mediamaneger into metaboxes

When I try to put button upload an image nothing happens. what's wrong with this? I put meta-box-image.js into my folder in my theme add_action( 'admin_enqueue_scripts', 'prfx_image_enqueue' ); ...
0
votes
0answers
22 views

How to add new tab to media upload manager with custom set of images?

I would like to add new tab to upload manager and inside list images from theme_folder/images/patterns I tried something like this to add a tab but it does not work for me function ...
0
votes
0answers
7 views

Why does wp_insert_post take longer than media_handle_upload?

I've got a page on my Wordpress site where users can submit posts or documents through the front end. I use wp_insert_post for the posts, and media_handle_upload for documents. wp_insert_post takes ...
0
votes
1answer
80 views

Insert media while posting is not working with new wordpress update

Insert media while editing or adding post is not working since the 4.1.2 update. But I can upload media through media manager itself. I didn't change anything in the site today, only the automatic ...
0
votes
1answer
50 views

PHP error when trying to upload .mp3 files via Media Library [closed]

When I'm trying to upload a sound file (mostly .mp3's) via the media library, I get the following errors: Warning: require(/path/to/website/wp-includes/ID3/getid3.php): failed to open stream: No such ...
0
votes
0answers
16 views

How to hide media link to settings?

I want disable MEDIA LINK TO settings for authors. I tried following code, but authors are still able to change settings. add_action( 'print_media_templates', function(){ echo ...
0
votes
0answers
11 views

Disable Media uploader to users

Is it possible to disable the Media uploader to anyone lower than an admin, but have the select file(s) window show?
0
votes
1answer
44 views

media sideload image not working with JPG file

media_sideload_image function not working for image url with JPG extension, its working fine for jpg (http://example.com/image.jpg) and png (http://example.com/image.png) but not with JPG ...
0
votes
0answers
16 views

Manipulating images in the media editor changes file URLs

it seems like, using the media editor to resize images, WP appends a string to the newly generated files, e.g. "...-e1428487180626.jpg". This is causing broken image links in some cases (i.e. where I ...
0
votes
0answers
41 views

wp_enqueue_media problem

I am trying to build up a form where user can request some post information including feature image. For uploading the image i have used wp_enqueue_media() which works nicely in all free themes ...
0
votes
1answer
55 views

How can I bulk delete media and attachments using WP-CLI?

I'm trying to mass delete 4000 images in a wordpress website. WP itself sets the max to 999, which would work fine and take a few minutes to delete them via the backend. However, I get REQUEST URI TOO ...
1
vote
2answers
60 views

Change WordPress' media upload URL?

This isn't the usual "How do I change the media upload folder?" question. Our entire site is run through a CDN. The CDN drops POST requests with a 5-6MB file so the WordPress uploads fail. I can work ...
0
votes
1answer
30 views

Disable image rename on upload

When I upload an image (test.jpg) with the Media manager it creates the same image with a digit after its name (test1.jpg). I disabled image cropping so files like test-[width]x[height].jpg don't ...
0
votes
0answers
20 views

Media and products does not show after adding new

Hello fellow wordpress developers, I have created a site with wordpress and woocommerce and I have a problem with the media and the products. After I enabled quick Cache (now I think it's called ...
0
votes
0answers
37 views

How to change html generated by wordpress media uploader

I have managed to change the output of wordpress media uploader using image_send_to_editor exampled below (where the output is image:($url)) However I want to do the same with other files like ...
0
votes
0answers
9 views

Triggering a task to a queue upon saving a custom post

Here's my ideal scenario for the use case I'm exploring. 1.) user creates a new custom post type record with a bunch of custom fields. One of these is a url field. 2.) upon saving the record, I'd ...
0
votes
0answers
178 views

Custom dropdown filter in media grid view

With the new grid mode in the media library the good old WP_List_Table specific restrict_manage_posts filter for adding custom filtering options is not available. All happens through JavaScript. I ...
0
votes
0answers
21 views

Get metadata of all files in the media

I need to retrieve metadata of files that are not images such as word, excel or pdf documents. I tried using get_post_meta( $post_id ); and wp_get_attachment_metadata( $attachment_id ); I'm only ...
1
vote
1answer
70 views

How to retrieve a value from an input field in a media view template

I've created a media view template with two input fields (width and height) and I was wondering how to retrieve the values entered in them in a media controller o view. PHP: function ...
3
votes
2answers
116 views

Add inline uploader to plugin option page

I would like to implement an inline file uploader to my plugin's option page as introduced in new media grid view of the WP media library: I imagine having this drag & drop uploader in the page ...
0
votes
0answers
11 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
32 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
32 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
69 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
210 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 ...
3
votes
1answer
74 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 ...
4
votes
3answers
145 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
34 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 ...
1
vote
1answer
100 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
95 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
18 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
37 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
32 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
31 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
35 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
234 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
149 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
78 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
65 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
186 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 ...