The tag has no wiki summary.

learn more… | top users | synonyms

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 ...
15
votes
2answers
8k views

How to Protect Uploads, if User is not Logged In?

I use wordpress for a private site where users upload files. I use the "Private WordPress" to prevent access in to the site if the user is not logged in. I would like to do the same to the files ...
0
votes
3answers
2k views

adding a button to the media uploader

I am writing a plugin for Wordpress and am wondering how to add an extra button to the media uploader that says something like "add to album". I can't seem to find info on how other developers have ...
0
votes
1answer
61 views

Is there a way to add a link directly into this media query?

I am running this query which pulls all of the images attached to a particular post and outputs them into a slideshow (See example here - http://powers.deanelliott.me/property/1428-elm-street/) Is ...
0
votes
1answer
346 views

Specific folder and no thumbnail generation for media_sideload_image

I am using media_sideload_image function in WordPress to upload images automatically from another location on the web. I want to add two more pieces of functionality. Add these images to a ...
0
votes
1answer
25 views

Theming media inserts

When I Insert media into my post or page it's rendered as a normal link. Would it be possible to somehow theme links that point to e.g. PDF or other file types?
0
votes
2answers
324 views

Another “Sent Headers” Error w/ Missing Temporary Folder

I'm having the common media upload problem where images will fail uploading and send the error. However, this problem seems to have popped up with a change I've made recently because my WordPress site ...
0
votes
3answers
2k views

Can't seem to see images on my machine but can on the server

Hello I just started using wordpress (complete noob) but I need a bit of help. I have installed wordpress and on a linux/centos webserver and this works fine. However when I use another machine, open ...
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 = ...
0
votes
1answer
82 views

Why does WP allow to view and media item as a page

Every media item that is uploaded to Wordpress can be viewed in a page. This can be seen if you browse to the Media section, hover on any item and click view. Are there any benefits to this because I ...
1
vote
2answers
661 views

Fixing media links after importing to multisite

When i imported all posts and media from a old site to new site which on wordpress multisite. The image links on posts are got broken because how media are stored on a multisite is quite different ...
2
votes
1answer
301 views

Best way to strip character entities (%20 etc)

I have a heap of images inside MovableType, on an old server. There are plenty which have character entities like %20 to represent spaces. I've used some plugins to import the images and change the ...
0
votes
1answer
488 views

Filter media upload attachment meta

I'm trying to determine a way to access the meta data for an image when it is first uploaded with the media uploader. Looking at the media_handle_upload() function in /wp-admin/includes/media.php I ...
1
vote
1answer
696 views

display image size in media library screen

i'm trying to add image size in media library screen so will be simply to handle images. Anyone does it before me? Any help appreciated. Francesco
5
votes
4answers
2k views

How to hide media uploads by other users in the Media menu?

Simply put - how might I completely hide media files uploaded by any other users other then themselves? Id like to disable access to these links & files since they are a way for non-admin users to ...
0
votes
1answer
528 views

Facebook OpenGraph error, Call to undefined function wp_get_attachment_src()

i have add facebook opengraph tag now it showing error like Call to undefined function wp_get_attachment_src() Object at URL 'http://www.website.com' of type 'article' is invalid because the ...
9
votes
1answer
5k views

Adding Category/Tag/Taxonomy Support to Images/Media

I've been trying to add category, tag, or custom taxonomy support to images (or all media, though I'm only concerned with Images). I've got it part-way figured out with: add_action('init', ...
1
vote
1answer
94 views

media 'path' issue / concern when bringing files live

I'm currently developing a site we have installed on a sub-domain. 'beta.mysite.com' We will eventually, be moving site to it's root domain. 'www.mysite.com' Problem? any post type attachment / the ...
1
vote
1answer
266 views

image in my post disappeared after I upload website to remote server

Before I upload my website to server, I created post with images which are uploaded to media, their url are, for example: http://localhost:40952/wp-content/uploads/2011/09/study_in-En.gif After I ...
1
vote
1answer
221 views

Plugin or method to delete uploads not in media library?

Over time working on a local and development server I've accumulated some junk in my wp-content/uploads folder which are not in the database. The folder and database entry are fairly large and so I ...
2
votes
2answers
658 views

Plugin to download attached media files?

I have a photo gallery site. Each post has 10-20 photos. I want to be able to offer a download of my photos on post-by-post basis in a single zip file. In other words a link to a zip file with all ...
1
vote
2answers
369 views

Out of Memory when Uploading an Image

Sometimes when I upload a picture (either with flash or browser uploader), I get a message like (this was with a 1.46MB jpg): Fatal error: Out of memory (allocated 69206016) (tried to allocate 4000 ...
2
votes
2answers
799 views

What's the best “insert all images” plugin?

I've tried several plugins that supposedly allow you to "insert all images" after using the flash based uploader to upload multiple images. However, I still haven't found one that ties in well with ...
1
vote
2answers
698 views

Set Maximum Width for an uploaded image

I want to restrict the width to a maximum of 600px for images uploaded using the "full size" image option in WP posts/pages section. I've tried two methods: Method 1: Adding the following to ...
0
votes
1answer
78 views

File names are being overridden when uploading new media

I want to hook into the media upload function and prefix file names with a timestamp. We're uploading a lot of stuff within a month, so we can't rely on the directory structure, and we're also dealing ...
0
votes
2answers
2k views

Link to full size image or attachment page in photo theme

My site is using WooThemes Statua theme. I'm trying to get my resized slider images to link to their respective full size images (or attachment pages). I asked a similar question on the WooThemes ...
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 ...
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 ...
1
vote
1answer
622 views

I need a Simple image uploader with a simple screen. WP default has too many options.

Hi guys I'm looking for a metabox type plugin that can upload ONE image into the post, that works with custom post types. I don't want to use the default WP uploader because it has too many options, ...
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 ...
0
votes
1answer
43 views

Attachments without images

I am using the Attachments plugin, but this question I'm sure is applicable to the regular media library. What I want to do is have an 'attachment' (metadata, title, caption) but with no image ...
1
vote
1answer
266 views

Handling image uploads without thickbox

Ideally what I'd like to do is hand a file to a function that returns the file as an attachment of the current post. Just as though it had been uploaded via the thickbox media uploader, but without ...
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 ...
1
vote
3answers
2k views

How do I change the upload file size limit in single-site wordpress install?

In the multi-site wordpress install, you get a very nice "upload settings" in the network admin settings. (see attached image). I am trying to change these settings without using php.ini for a ...
1
vote
2answers
203 views

Wordpress bug with capabilities?

EDIT: aha! It appears to be the "Role Scoper" plugin causing this problem. Deactivating it restored the functionality. Consider this question null. I've enabled the capability of uploading files for ...
0
votes
2answers
929 views

How to count media attachments?

How do I count the number of media attachments a specific post has? Output example: This post has 22 photos. Thanks!
2
votes
1answer
775 views

Too much recursion error when chosing image from image library for two different meta boxes in one post

There must be a solution for this. I am using this solution for chooosing images from media library. http://www.webmaster-source.com/2010/01/08/using-the-wordpress-uploader-in-your-plugin-or-theme/ ...
2
votes
1answer
169 views

Is email post notify visitor on new media upload possible?

Is there a plugin or snippet that would: Add an email input form to each post Send a predefined message when new media (or attachments) has been uploaded for that post only The requested ...
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
3answers
753 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 ...
1
vote
2answers
2k views

Force wordpress to see uploads folder media

I uploaded the "uploads" folder to my wordpress install manually from a backup with the exact domain. All of the media properties for height and with are the same and they are all visible on the site. ...
0
votes
1answer
186 views

Whats wrong with my wp gallery?

i was making a gallery on my clients site using [gallery] sortcode. The gallery appears but when clicked it goes to clients other website which i have no idea why? here is the link ...
0
votes
1answer
1k views

MediaElement.js works on one site but not the other?

I love the MediaElement.js plugin but I seem a little stumped. I have installed it on two WordPress sites: http://blog.mattforget.com/?p=94 and http://oedipus1.com/home/?p=3822 The sites are hosted ...
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 ...
0
votes
1answer
498 views

Media library only show 2 items per page?

For some reason WordPress media manager is only showing 2 images per page? This is happening on 2 separate sites now and I can't get rid of it. Is there a way to manipulate items per page for the ...
1
vote
2answers
229 views

Pull images from the gallery

I am building a template where wordpress is being used primarily as an image CMS, I am pulling the first image from the content section of each post. <img src="<?php echo grab_image() ?>" ...
2
votes
1answer
973 views

Set Image width='x%' (percentage width not pixel width) when inserted via the media manager?

When uploading images via the media manager there are a couple of set sizes available such as thumb, medium and large. I do know how to add additional sizes, but I have yet to get it to insert an ...
5
votes
1answer
772 views

What's the easiest way to close comments on media/attachments?

I consistently get spam attempts on various and sundry media attachments on my primary WP blog. By default, media has open comments (for instance, ...
1
vote
1answer
522 views

window.send_to_editor throws unterminated string literal error when adding image with multi line description

I am using media-upload.php?type=image&tab=library script to add an image to a post with a description that contains html. This php script uses the javascript function window.send_to_editor to ...