The tag has no wiki summary.

learn more… | top users | synonyms

4
votes
1answer
713 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 ...
4
votes
1answer
491 views

wp_editor with media buttons

I use wp_editor() on the frontend. media_buttons are displayed on default if visitor is logged in. I want to display these media buttons whether user is logged in or not. Is there any way to achieve ...
4
votes
1answer
274 views

How to protect uploads in multisite if user is not logged in?

I am trying to set up a multisite intranet (using subdomains) where content on each sub-site is only accessible to users logged into their respective site. The problem I am having is trying to ...
4
votes
2answers
455 views

How to manage a standalone media folder?

Managing my Wordpress installation with Git is great. I get to deploy fixes via command line (with Capistrano), easy rollback plan, the Theme folder is a standalone project added as a submodule -- ...
4
votes
1answer
151 views

Media Uploader: get deleted files

I am currently working on a plugin to upload files to wordpress using the file uploader. The user can save a list of files to use in another location of the theme. Everything works, except when I want ...
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 ...
4
votes
1answer
423 views

How to extend LINK TO functionality in ATTACHMENT DISPLAY SETTINGS

In WP 3.4.x and earlier, it was possible to add a button to the media manager by messing around in an attachment_fields_to_edit filter. For example, a plugin could, when it figured out that an item ...
4
votes
0answers
1k views

Best plugin to manage media library? [closed]

I'm finding the media section of WordPress a bit hard to manage with it's paginated pages. Is there any plugin that helps display all the files differently? Like more images on one page and perhaps ...
3
votes
2answers
4k views

Creating a metabox to upload multiple images, Ignoring The Featured Image

My question is basically identical to this other question here, however my question is still slightly different. I basically have a custom post type called "Packages" each package can have a slideshow ...
3
votes
3answers
3k views

Resizing all images

I have just changed the theme on my blog, and because of a small page width, it breaks the layout. Most of my earlier images (attached in posts) are around 600px in width, and now I need to resize all ...
3
votes
2answers
338 views

PHP/Manual use of images? - 2 Questions

I've made a quick PHP script/page that uses the wp_insert_post() function to insert a post directly. And this works great. The post I am manually adding has an image in it, so I firstly ...
3
votes
2answers
687 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 ...
3
votes
1answer
727 views

Multisite, upload images directly to Amazon S3

I have created a multisite network but I've noticed people are uploading a lot of image files which are clogging up my server space. Is there a way I can amend the default network theme (Users are ...
3
votes
2answers
1k views

How to add a category or tag to media at upload time with the browser uploader?

I don't use WordPress very often... I hope this makes some sense :-) Is there a way to sort media files into categories? I want to give some order to the media that are being uploaded to the website, ...
3
votes
2answers
2k views

Media library to list images only user uploaded

I want to list images for only user uploaded image. Here is the scenario: Using the image uploader on front end using iframe. I have added upload_files cap to subscriber level users and want them ...
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 ...
3
votes
2answers
3k views

Wordpress Uploads Folder can't be Written to

This one has me stumped I'm sure it is something really small that I am overlooking but I think I've been looking at it too long to see what the problem is. Wordpress is telling me: "Upload ...
3
votes
2answers
189 views

There's a way to scale media (images) at 50%?

I wonder if there is a way to scale down uploaded media exactly to 50%. From what I see, with add_image_size you can only specify a width and a height in pixel. The idea is to upload high resolution ...
3
votes
1answer
1k views

Use Media Library to manage galleries like Nextgen (with folders, albums, collections, tags, categories, terms…)

I'd wish to use WP 3.x standard Media Librery rather than relying on 3rd party plugins like NextGen no matter how well they're written. I just don't like duplicating functionalities. Media Librery ...
3
votes
1answer
30 views

Alter media caption/description conflict in Wordpress?

When uploading an image, Wordpress reads the description meta data from the jpg via wp_read_image_metadata and inserts it into the post_content field when adding the attachment via media_handle_upload ...
3
votes
1answer
158 views

Filter by post category in Media Library

I am trying to find a way to filter the Media Library by the Post Category that a Media item is assigned with. I can see that you can sort by "attached to" but this only get me a little of the way ...
3
votes
1answer
657 views

Uploading Images to Multi-Site Causes Failure to HTTP Error

Just to fill you in on my situation. Running WordPress multi-site version: 3.5.2 clean install. Zero 3rd party plugins. All of my plugins have been disabled for debugging. Using WordPress MU ...
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. ...
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 ...
3
votes
1answer
1k views

How to make a page template to list all galleries?

I'm trying to code a theme where I'll have a universal gallery page. Basically like: http://www.engadget.com/galleries/ However I'm at a loss for what I'd use to call all the galleries. I need the ...
3
votes
2answers
1k views

Saving Media - Which Hook is Fired?

Howdi, I am trying to fire some code that will occur when I save an image in the media library, as per usual, I select the file, upload, enter the meta data and then click save. At this point I want ...
3
votes
1answer
1k views

Uploading Multiple Attachments From Front-End With A Description

I am working on a Wordpress site that has a custom front-end submission form for adding in a post of content type, 'sketchpad'. The form has a section that allows you to upload multiple images with a ...
3
votes
1answer
1k views

Using the media uploader in a custom plugin

As part as a widget I'm creating, I need the admin to upload an image via the widgets panel I have the following code under a new class <?php function form($instance) { $instance = ...
3
votes
1answer
708 views

Restrict the number of images to upload per post

Is there an easy way to limit to one (per post) the number of images to upload through media upload?
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
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 ...
2
votes
4answers
1k views

Is there a user-facing interface to edit an attachment's permalink?

If you use the [gallery] tag at all you know that permalinks for image attachments end up like blog.com/2011/03/18/post-permalink/attachment-permalink. The URL extension from the post permalink ...
2
votes
5answers
9k views

How do I link directly to uploaded files?

I have uploaded some files (images) which I'd like to link in my own site as well as other places, but usually I try to host a different resolution of the same image to show up on other sites. My ...
2
votes
3answers
4k views

Linking a PDF as a downloadable document

How do I add a link to a PDF in the content, so that it downloads rather than opens in the browser windows? (I've uploaded the PDF to the media library and can insert the link but can't find an ...
2
votes
2answers
509 views

Image dimensions same as image size

So if I set the large image size in the media library to say 600x600 pixels, and then upload an image which is the same dimensions it won't get set as the 'large' image. There is talk on this ...
2
votes
3answers
754 views

How would I go about listing only unattached media in say a sidebar?

I have a client who uses PDF files for their newsletter, I don't think that this is a good idea personally, but it's not negotiable. They have a news page where they put real time news and they'd like ...
2
votes
2answers
218 views

Differentiate Featured Image from Post Images upon Upload

I want to differentiate the featured image from post images. The plan is to give the Featured Image multiple sizes, but the images inside / connected to the post only needs the default sizes. I ...
2
votes
5answers
3k views

Media gallery - inserting full size images without link

I want to use built-in WP media gallery. I'm trying to simply add images in one - horizontal line. I want images with original size and without any link. I'm trying to add/edit some code into ...
2
votes
4answers
316 views

Best image hosting service

My girlfriend has a very popular blog, but we are growing beyond current bandwidth limit (1TB). Adsense doesn't pay enough for an expensive CDN. What recommendations can you make about image hosting. ...
2
votes
2answers
4k views

Wordpress Image Editor not working - conflict?

I am having a strange issue with the built in wordpress image editor. I have no problem uploading files or preforming any other media functions. The only thing I seem to be unable to do is utilize the ...
2
votes
2answers
248 views

Is it possible to trigger some JavaScript when Media Popup is opened?

On one of my custom posts edit page I have a button that triggers the media popup onclick, with: wp.media.editor.open(); and while it brings up the media manager I'm not sure if that's the proper way ...
2
votes
1answer
189 views

How to validate the file name of the Media File Uploads?

I want to validate the file name of the files to be uploaded from the Media Library. CASE study: I want to restrict the file name containing '%', '. .', '/' etc..from uploading to the media library. ...
2
votes
1answer
2k views

Failed to import media from a local wordpress site to a live one

I've been developing a new blog theme for a client locally on my computer and am now in the process of uploading this to the new live server. I used the wordpress export facility to export all the ...
2
votes
1answer
1k views

Custom function to rearrange attachments when creating posts – Almost there

I'm having some trouble with a custom thing I'm doing. I've implented a custom image uploader into a metabox in a custom post type. Now I'm trying to work out a way that will let me reorder the ...
2
votes
1answer
311 views

Setting higher upload limit

How can I change the standard 7MB upload limit? I have full shell and admin access to my Wordpress blog.
2
votes
2answers
438 views

Should I use custom post types for a front page video feature (vimeo)?

I'd like to create a front page video feature that embeds a vimeo video of the users choosing. I'd like the user to only have to input the video code. For instance, for http://vimeo.com/24474320 - ...
2
votes
2answers
82 views

Disable edit option in Media library

Hovering my mouse over a file name or a thumbnail brings up the Edit option, I want to know is there any hook to disable all edit links in Media library on Multisite
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 ...
2
votes
2answers
1k views

Organize uploaded media files

I have a blog with all media stored in a folder called upload (organize media was disabled), I've activate it to organize new uploads by date. But how can i organize old files? I want this because i ...
2
votes
1answer
5k views

Restricting access to files within a specific folder [duplicate]

Possible Duplicate: How to Protect Uploads, if User is not Logged In? Is there any way at all to restrict direct access to files within a specific folder to only specific wordpress users ...