The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
102 views

Bulk Attach Or Insert Media To Post Without Opening Post Editor

How to create a custom panel inside wp admin dashboard where we can insert media to specified posts in bulk? Here is the illustration: As shown on the image above, it list all available media on ...
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 ...
10
votes
2answers
905 views

ZIP up all images displayed in a [gallery] and offer as download link

I would like to offer my visitors the option to download the entire photo gallery (displayed on dedicated [gallery] pages) as a ZIP file displayed at the bottom of each gallery page. - The full-sized ...
0
votes
1answer
242 views

Video uploaded with the native media uploader gives Error 404

I created a shortcode to make an HTML5 player insert into my post, but my problem is when I attempt to view a video that I've uploaded with the native Media Uploader, I get a file not found error. The ...
2
votes
1answer
303 views

Delete attachments from Front end

I am trying to make a simple media manager on the front end of my posts, as my site will have many authors. I want to give them the ability to delete any picture attachments that they have uploaded to ...
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 ...
6
votes
1answer
232 views

How to make “Upload files”selected by default in Insert Media?

I am frustrated having to click on the "Upload Files" constantly instead of the first choice being Upload Files in posts editor....How can i make “Upload files” selected by default instead of "Media ...
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
1answer
129 views

Control resizing of uploaded images

I am looking for the regular images that get uploaded from the media uploader. I want to put in an image resize script instead of using WordPress to manage the images. The main reason being is that I ...
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 ...
3
votes
1answer
437 views

Extend 3.5 media uploader plugin to change button name

I have followed a tutorial on how to upload images using Wordpress' 3.5 media uploader. All is well. I would just like to change the text of the actual upload button "Insert Into Post" to something ...
0
votes
1answer
94 views

Exclude an array

I'm moving edit post dashboard to front end. So here is a case, I have to queries, one for product attachments and other for ALL. Now, I want to exclude product attachments from ALL attachments query ...
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 ...
1
vote
1answer
106 views

Rename “Add Media” Button To “Add Images”

I would like to rename the "Add Media" button (just above the post editor interface) to be "Add Images". I can't seem to find the appropriate filter for this. There seems to be a filter that has now ...
0
votes
2answers
158 views

the_time() returning wrong date/time (way in the future)

Within a loop, that otherwise works fine, the_time() is giving me a date and time about 25 days and a few hours ahead of the actual date.For instance, if I post today, it lists it as "April 30th, ...
0
votes
1answer
79 views

Multi site and media uploader

There seems to be a strange issue with my multisite on my live blog. Maybe its because I have one site set to "deleted" - so I can edit it, but the public can't see it? My current upload is set up as ...
0
votes
2answers
2k views

How organize uploaded media in WP?

I am new in WordPress and I came from Joomla. I am having some problem to understand how can I (if I can do it...) organize the uploaded media into folders and subfolders using WordPress. If I go in ...
5
votes
1answer
1k views

Display attachments by ID in a wp.media frame

I'm trying to use the new wp.media uploader frame for an app I'm building. I've read up a lot on other questions, blog posts, etc etc. The code I pasted below is working already quite fine and even ...
0
votes
1answer
194 views

Wordpress Media Uploader custom Javascript not working

I encountered a strange problem with my JavaScript (jQuery) when trying to modify the behavior of my Media Uploader in Wordpress 3.5 This was my JQuery: $('.attachment-filters').change(function(){ ...
0
votes
1answer
185 views

Get all media files for current author

I'm trying to create a list on the frontend of my site of all media items that the current user has uploaded. It seems like the way to do this would be to loop through and compare the ID of the ...
5
votes
1answer
244 views

Image upload callback in new 3.5 media

I am using new 3.5 media uploader in my theme frontend (base on this example). It is very simple when you want to do something with images after the 'Select' button is pressed: ...
1
vote
0answers
186 views

Upload video in custom folder

I am trying to find a system to upload some kind of media in a custom folder. I want to keep all uploads in default wordpress folder and create a custom folder just for videos. So i would have the ...
11
votes
3answers
2k views

How Can I Add the “Insert From URL” Tab to a Custom 3.5 Media Uploader?

I've inserted a WP 3.5 media uploader into a widget by running this JavaScript when a button is clicked on: var frame = wp.media( { title : 'Widget Uploader', multiple : false, ...
3
votes
1answer
310 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 ...
3
votes
2answers
684 views

How to make custom bulk actions work on the media/upload page?

I'm adapting a script I found online to add custom bulk actions to the screen with the list of posts. It has this line: add_action('load-edit.php', 'custom_bulk_action'); I'm trying to adapt it for ...
1
vote
2answers
2k views

How to single click to download image in single post

i have attacment.php like this. <?php if ( $attachments = get_children( array( 'post_type' => 'attachment', 'post_mime_type'=>'image', 'numberposts' => 1, 'post_status' => ...
3
votes
2answers
155 views

Filter what image sizes get generated

I'm looking for a way to chose what images sizes get generated by image. With all the image sizes I have plus a lot of images, in the end I have a whole lot of server space being used up for nothing. ...
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 ...
3
votes
1answer
247 views

How to create an edit media button for slideshow plugin?

I want to create an edit media button for my plugin, right now you can easily upload images using the WordPress 3.5 media uploader but I want the user to be able to edit the uploaded images, something ...
4
votes
3answers
1k views

Insert images to post not working

I'm encountering an issue with wordpress 3.5.1 (french language). I can't insert images in posts/pages or whatever. When i access the media library from the button "insert a media" (while editing a ...
13
votes
2answers
2k views

Enhance Media Manager for Gallery

I would like to enhance the Media Editor, after WordPress 3.5, on the gallery view. I want to add a new select field on the right side and send the selected values to the gallery shortcode. I ...
0
votes
1answer
123 views

Gallery shortcode numerical sorting

When I try to sort a Gallery created through the [gallery] shortcode by numerical titles I get them sorted in alphabetical order. That means that they are sorted like so: 1, 3, 34, 4, 56, 6, etc. ...
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 ...
0
votes
1answer
179 views

Thumbnails for media Library images

I have somee Item in the media library, where I want to retrieve the thunbnail from. I use the normal post thumbnail functions (tried some of them), with normal posts or cpts's the work fine. As ...
7
votes
5answers
521 views

Use a separate custom table (not posts) to handle file upload data

The Problem: Website that has over 100 photos per post. Could possibly swell posts-table beyond 100K entries within a few years. The Dilemma: Would much rather stick to default WP UI for handling ...
1
vote
1answer
474 views

Image size filtering in Media uploader according to custom post type

I have three different custom post types which require an image upload in the admin post edit page. Each type has its own image size setting. Let's say: 'news' type => picture size required: ...
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 ...
4
votes
1answer
712 views

Wordpress Media Manager 3.5 - default link to

Media Manager once again. This time I'm looking for a simple hack/hook/filter to change default "Attachment Display Settings" from media manager. The option is "Link To" that is default set to "Media ...
1
vote
1answer
450 views

3.5 Media Manager - callout in metaboxes

Two ways of doing the same thing: First one: var _custom_media = true, _orig_send_attachment = wp.media.editor.send.attachment; $('.media-upload-button').click(function(e) { var ...
1
vote
2answers
579 views

Cropping thumbnails to specific dimensions on front end post

Probably not the best title description but here we go. One of my custom post types is for youtube videos which I take the thumb from youtube and upload it as a thumbnail for the post. Now it's easy ...
1
vote
0answers
462 views

Extending wp.media.model, query media from different blog on network and refresh view

I'm trying to extend the new wp.media.model to allow users to be able to choose any blog across the network and pull down the associated media library into the library content view. In the old ...
2
votes
1answer
184 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 ...
4
votes
1answer
1k views

How to call WP3.5 Media Library manager?

In the past Media Library window could be called like this: tb_show("Upload image", "media-upload.php?type=image&TB_iframe=1&width=640&height=520"); This still works in WP3.5. But I'm ...
7
votes
1answer
2k views

WordPress 3.5: Switch back to Old Media Uploader?

Is there any way to switch back to the old media uploader in WordPress 3.5? The new one is very slow for me, as I have thousands and thousands of images across my site, and I have a few plugins that ...
0
votes
0answers
33 views

Making epub, pdf, mobi formats available in a post? [duplicate]

Possible Duplicate: how to upload and allow downloads of .mobi and .epub formats I am considering the feasibility of converting a client site from a large number of hand-built web pages to ...
6
votes
1answer
326 views

what happens to existing media files when I switch to year/month directory structure format?

A site has thousands of images in the uploads folder. ISP has threatened to shut it down because it is about to exceed server limits for the max number of files in one directory. I looked at the ...
0
votes
1answer
358 views

add_image_size is not generatin images of correct dimensions

I am trying my hands with WP add_image_size method and this is the entry in my theme's function.php if ( function_exists( 'add_theme_support' ) ) { add_theme_support( 'post-thumbnails' ); ...
3
votes
1answer
155 views

How to make WordPress use protocol indepentent upload files?

I am using FORCE_SSL_ADMIN in wp-config.php so everytime I upload a new image and inserted into the post, it is using SSL version e.g. <img ...