0
votes
0answers
29 views

Resize an image on selection from media library

i want the image(image1) that is uploaded by a user to be automatically resized to 360px width and 560px height once selected and image 2 to 280*510 once selected from the media library via the theme ...
1
vote
0answers
193 views

Adding wp_enqueue_media(); causes problem

I want to add the media uploader in the theme options page. If I add following code in the options page, the media uploader works fine there, but it creates problem in the standard posts featured ...
1
vote
1answer
190 views

Get url of thumbnail from the media uploader

I want to select image from the WordPress 3.5 media uploader. I can get the image URL with the following code, but it gets the full size image. I want to get the thumbnail image url,how can I get ...
1
vote
1answer
438 views

Import media to online WordPress from local development

I have a site being developed locally and I want to import the contents to an online installation. I used wordpress "import" but it cant get the media files. Is there any "wordpress" was of doing this ...
1
vote
1answer
96 views

Media Uploader in custom path

I am creating a CSS generator in my WordPress theme and I want to be able to save custom skins with images as well. My problem is that I have a hierarchy like /skins/custom-skin/images for the ...
1
vote
1answer
110 views

Add attachment for all images in post

I want to move someone else's WordPress blog to a new server. I only have access to the exported XML file of the blog. When importing the XML with the Wordpress Importer plugin, everything went fine ...
0
votes
1answer
233 views

How to add a download link to a movie from WP media library?

All, I'm creating a custom theme for WP and it has some pages that play videos from WP media library with an HTML5 player. I wanted to also have a link next to the player to allow the users to ...
0
votes
1answer
400 views

Get attachments by user

Is there a way to get attachments by user? I need a way to display all the images uploaded by a specific user. (I probably need the attachment IDs so that I can use wp_get_attachment_url to display ...
3
votes
2answers
711 views

How to force Media manager to overwrite files of same name?

I have a widget that works with my theme that expects images named in a certain way, slide1.png, slide2.png, etc... However, when the user uploads their own images, named slide1.png, slide2.png, etc ...
1
vote
2answers
3k views

Plugging into the Media Library to upload images (NOT associated with any post)

My Old Question: I made a Theme with rotating banner, common thing. So I want a way for users to select images. I think instead of implementing my own upload, I think its better to allow ...
0
votes
2answers
214 views

Is it possible to determine when user is at “Media > Add New” vs “Post > Add an Image”

I want to wrap the filter below in a conditional that tests whether the user is uploading an image from the Media Manager (Admin > Media > Add New) and not from the post editor image upload routine. ...
0
votes
3answers
3k views

How can I stop WP media uploader from creating duplicates of my uploaded images?

I have a setting in my theme that seeks to prevent the WP media manager upload utility from creating multiple copies of each image I upload. Apparently the latest versions of WP have changed the ...