The tag has no wiki summary.

learn more… | top users | synonyms

3
votes
1answer
309 views

wp_generate_attachment_metadata returns empty array

foreach ($_FILES as $key => $file) { $uploadedImage = wp_handle_upload($_FILES[$key], $upload_overrides); pre_r($uploadedImage); if ...
2
votes
1answer
91 views

How to change the naming of the resized image files

Now with custom image sizes Wordpress is almost as powerful as timThumb / phpThumb. There is one problem however. The way Wordpress handles the resized images are chaotic and doesn't survive theme ...
2
votes
1answer
183 views

WP3.5 Media Uploader - how to make it accept multiple images?

I'm wondering how to make WP3.5 media uploader return 2 or more items in attachement? It always runs once even if 2 items are selected. The code: $('.button').on('click', function(){ var ...
1
vote
1answer
6 views

Get all media categories

I've added a new taxonomy for the medias post type: function register_taxonomy_for_images() { register_taxonomy_for_object_type('category', 'attachment'); } add_action('init', ...
1
vote
1answer
40 views

Media upload not working on theme option in WordPress 3.8.1

I have this jQuery code in my plugin to display a media box preferably to upload an image or to pick an image from the media gallery: (function($){ jQuery(document).ready(function() { ...
1
vote
1answer
29 views

Media Manager (since 3.5): How to show an empty Media Library when creating a media frame?

Is there a way to make sure the "Media Library" tab does not show any images until I start uploading some in the "Upload Files" tab? I am creating a wp.media frame with the following code: var ...
1
vote
1answer
173 views

Remote upload file to server B

I'm aware this might be some of the hardest coding to do ever, but thought of giving it a try. Im basically trying to detect all (mp3) filetypes uploaded through the Wordpress media upload and send ...
1
vote
1answer
181 views

Retrieving JSON data in ajax request from media uploader

I'm having some problems getting my JSON data that's being passed via an ajax request. I'm trying to implement the media uploader into a plugins settings page. I've got it functioning properly using ...
1
vote
1answer
579 views

Audio and video shortcodes not working properly

I'm having some trouble with Wordpress's built-in shortcodes for audio and video. When I embed a video, it basically gives me a black box and has a link to download the file at the top; when I embed ...
1
vote
1answer
230 views

Media handle sideload not working

I am using this media uploader wp snippet which downloads an image from my one site to other. It was working fine until yesterday but I checked this morning, it wasn't working. ...
1
vote
1answer
85 views

Is it possible to change image size used for preview thumnail in Add Media popup

I has cleaned up my media items by removing all the medium and large size from upload dir. So the medium size now could not be found. Currently the Media library popup (when click Add media) uses ...
1
vote
1answer
816 views

Custom bulk action for media gallery items

I'm trying to add custom "Bulk Actions" to WP 3.5 new media gallery items. I started from this excellent tutorial which does exactly what I need, but with regular posts; so i tried to adapt it to work ...
1
vote
1answer
85 views

WordPress Automatic Filename Changer

So I used this function that allows me to change the literal filename in the directory on upload. But, it doesn't actually change the filename, hence changing the slug to the ID when attaching to a ...
1
vote
1answer
82 views

Client system for media review?

I'm looking for a plugin, or a system, for wordpress, that would allow a client to login and see the graphic designs, video, documents, etc... that i'm currently producing for them, and allow them to ...
0
votes
1answer
26 views

Media/attachment urls don't redirect with fake URL structure

I'm having an issue with media/attachment files and I'm not quite sure how WordPress is returning the URL that it does. I've noticed that I can add anything as a subdirectory structure before a media ...
0
votes
1answer
47 views

Site migration - some images not displaying in Media Library

After migrating a site from the live server to my test server (different URL), some of the images (not all) are not displaying. The src is correct, image is in the uploads folder, and everything ...
0
votes
1answer
64 views

Wordpress media upload multiple images

Media popup opens but faling to insert the images . After selecting images it goes page not found instead of closing the popup and returning to tb_unload. I found below code from the template which ...
0
votes
1answer
138 views

How to remove “Image Information” and “post date/author” from a media page?

I'm trying to use Wordpress to setup a simple website for my business, and I'm having issues with the gallery page. Once an image is clicked and brought to it's specific page, it includes author and ...
0
votes
1answer
103 views

Use the WP media uploader dialog for uploading a form attachment (non-admin). Offering progress and drag and drop feedback

I am building a simple contact form (non-admin) that has an attachment field. Of course I can just handle the upload via WP's wp_handle_upload function. However, I would like to give my visitors a ...
0
votes
1answer
50 views

Active Directory and group permissions

I'm trying to modify WordPress to have the following features: Users are created in Active Directory and assigned to groups. Users can login to WordPress via Active Directory. Pages can be locked ...
0
votes
1answer
28 views

Custom image sizes

I noticed lots of articles on how to add custom sizes for images (media). But how would I be able to add a custom size such as "width:100% and height:auto" this way it will make sure the images are ...
0
votes
1answer
137 views

Wordpress core responsive video not working with shortcode

I cannot get the video from Wordpress core to behave responsively. I'm using the following CSS: .videocontent { width: 100%; height: 100%; max-width: 1024px; margin: 0 auto; } ...
0
votes
1answer
409 views

Add SWF file to wordpress through custom template

I am trying to attach an swf file to my website. I have that swf file in my local system. But wordpress is not alowing me to upload the swf file into the media library. I want to add that swf to my ...
0
votes
1answer
76 views

Add select field to media uploader that adds a class to the image

I'm looking for a way to add a <select> menu to the media uploader that will have two options: normal image, which will do nothing, and profile image, which will add a CSS class to the image if ...
0
votes
0answers
30 views

Wordpress / Audio player

I need to build a website with an audio player. This audio player needs to play music without stopping when content is loaded. I know this might be a little complicated but I would like to know if ...
0
votes
0answers
85 views

show/hide attachments

Is there a way to show/hide attachments in my case images on a post. What I want is to mark an image as "hidden" and then only show it to the admin and hide hidden images from a normal user I know ...
0
votes
0answers
34 views

Display image attachment meta-data in gallery

I have a gallery that displays the pictures of the staff of an organization I'm building a site for. When a user clicks on the staff members picture, that attachment page opens up and displays the ...
0
votes
0answers
346 views

http error when uploading media files

I am having this same annoying issue many other have: When I am trying to upload images into Wordpress via the media uploader, it gives me an http error. Now I have tried the following, but nothing ...
0
votes
0answers
99 views

Media Insert (Media Upload) doesn't work on author role in Front-End

I have a problem. In my front-end I have a Write a Post area, where users can write a post, and add their own images. I have inserted the media upload with wp_enqueue_media(); With my current ...
0
votes
0answers
262 views

Images on admin backend not showing up

It was going alright with images a week ago! But recently when I noticed I found that image thumbnails in media library and in post editor were either not showing up or were just showing there ...
0
votes
0answers
70 views

Force thumbnail creation

If a particular image is uploaded with the same size dimensions or less than my set thumbnail size, wordpress won't auto cropped it. Doing some searching I come to learn that the hook responsible for ...
0
votes
0answers
114 views

Unable to Upload image via WordPress Media Manager

I have a WordPress 3.5.1 driven website. When trying to upload images via WordPress Media Manager, the below error is displayed: "xxx.jpg has failed to upload due to an error. The uploaded file ...
0
votes
0answers
31 views

Unable to send upload url

I have created an image uploader, when I click the submit button the media uploader pop-up box appears but the image path is not being sent to the input field. Display code: <label ...
0
votes
0answers
16 views

How do I use two different images, one as a thumbnail and one as a linked image? (1 post)

I want to do an image gallery in a page, where the linked image (a href) is different from the thumbnail's src. I need to have the ability to change the thumbnail image. Its important because for each ...
0
votes
0answers
18 views

Customize the method of adding media (images) using editor

For example, my WordPress editor adds images from media like this: <a href="image_url"><img src="image_url" alt="image_caption" width="image_width" height="image_height" class="size-full ...
0
votes
0answers
43 views

WP Feed namespace attr issue

Having a strange issue (well, strange to me) where an xmlns:media namespace attr is being added to one feed but not the other. How do I get rid of the "xmlns:media" attr? I don't even know why it's ...
0
votes
0answers
139 views

wordpress plugin help : how to upload my files to wordpress media library?

Please Help me ! i need to developed a front-end drag and drop plug in. First i collect the html5 drag and droping code. download the source code in zip format - ...
0
votes
0answers
30 views

Creating a dynamically generated wordpress media slider

I'm looking for a way to dynamically generate a number of slides that would register with the wordpress settings API. For example, if I have a form that increments the amount of slides they would like ...
0
votes
0answers
34 views

PNG Images are automatically becoming JPG - How to stop this?

I am running ELegant Themes on WP. I need to use PNG images otherwise the thumbnails do not show. hence I have started using PNG images for my site by default. Today I realized that the thumbnails ...
0
votes
0answers
163 views

Allow users to upload videos and images

I need to allow users to upload videos and images to WordPress. This can either happen in the comments section (so far I have managed to allow users to comment using Facebook and upload a picture), ...
0
votes
0answers
62 views

Open Media Manager with selected items

In WordPress 3.5 I was able to open a Media Manager popup with a set of pre-selected items from the Media Library using the following piece of code: frame.on(‘open’, function(){ var attachment = ...
0
votes
0answers
70 views

Editing with thickbox in wp-admin - Endless loading

I have a plugin with images inside wp-admin. Works fine without thickbox When clicking on an image I can edit them with this URL: ...
0
votes
0answers
54 views

add file upload to post type

Short question but how can I include a pdf file attachment upload inside a custom post type? currently creating a new custom post type and I can't see a supports for media upload without the editor... ...
0
votes
0answers
36 views

How do I add populate media files from my plugin

So I am creating a plugin that will be able to upload a special kind of video. I added a two new tab under Media Page called "Add New Custom Video", "Custom Video Library" - I was able to call the ...
0
votes
0answers
35 views

Image sizes in posts

I am having issues with images in my blog. I have default settings for media set in settings->media I am using a resize script to crop the featured image. So everywhere the featured image is called, ...
0
votes
0answers
86 views

How to add audio media in a post?

I am simply trying to add an audio file in a wordpress blog! I have tried different audio player plugins: the non-existing anymore (?) haiku minimalist player, the jQuery player, the ...
0
votes
0answers
218 views

Make Add media button accessible to all in front end

I am trying to add an interface in which any user(including non logged in) can create a post from the front-end. I am able to bring the default wordpress editor to front-end using the wp_editor ...
0
votes
0answers
60 views

Edit Media: Apply changes to specific size only

In the Edit Media (edit image specifically) box, you can crop, flip, rotate, among other things. On the right sidebar, there is an option to Apply changes to: All images sizes Thumbnail All ...
0
votes
0answers
113 views

Remove full size image in wordpress

I am using wordpress 3.5 and everuthing is good except that each time one image uploaded, it will created many unnecessary image sizes. I confirmed my theme and found that it does not use the full ...
0
votes
0answers
122 views

How to extend media gallery WP 3.5

I'm trying to extent in a theme the media gallery. basically what I'd like to do is to have another button next to 'Insert gallery' that will say something like 'use this images'. And when clicking ...