An image, audio or a video comprises a media.

learn more… | top users | synonyms

5
votes
1answer
253 views

Which filters or actions to use after a media upload and delete?

When a media (image) is uploaded and the subsequent images are created (all the different sizes), I would like to perform a few actions. It is simple and I basically need only the new attachment ID, ...
0
votes
1answer
207 views

Insert attachments from custom uploader into post (regular uploader style)

I recently started using this nifty meta box framework: http://www.deluxeblogtips.com/meta-box-script-for-wordpress/ I really like the plupload meta box, however, I need to be able to add the ...
0
votes
1answer
41 views

What if I have a large file on the server that I want the wp library to have?

I have one server that has wordpress in the root directory. However before I installed wordpress, I also have (root)/videos. I'm sure I can move this folder anywhere, however I want to move it to a ...
1
vote
1answer
681 views

Image still attached to post even after removing it as featured image

I'm sorry if this is too noob of a question, but when I upload an image and set it as the featured image then later remove it (as featured image), the media list still shows it's "Attached to" the ...
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 ...
0
votes
1answer
198 views

Display MP3 as media using an URL from a custom field

I created custom field and placed this inside the loop: <?php echo get_post_meta($post->ID, 'ses', true); ?> But now the link is all text. I would like it to be like my theme does when I ...
0
votes
1answer
240 views

get an attachment's media tags or check if it has a media tag?

Is there a way i can get media_tags assigned to an attachment (by id)? And/or check if an attachment has a media_tag? Not sure if i'm missing something but there seems to be very little support for ...
3
votes
3answers
2k 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 ...
0
votes
2answers
273 views

TinyMCE - Insert media at the beginning of post

I want to modify TinyMCE in WordPress so that it inserts media (image etc.) always at the beginning of post contents. For this I need to change the cursor position to the beginning, insert media and ...
0
votes
1answer
114 views

Bug: Deleting file, then uploading same file again places file in an old month folder

This is an issue with wordpress's month based organization of media files. To re-create the issue: Delete an image file from a previous month Upload the same image file (same name) The newly ...
0
votes
1answer
546 views

Attaching images to multiple galleries

I've been wondering about this image/gallery issue for ages. So, I've got some images: lifestyle1.jpg, lifestyle2.jpg, lifestyle3.jpg, lifestyle4.jpg, kids1.jpg, kids2.jpg, kids3.jpg, ...
1
vote
1answer
512 views

How to Removing fields from the Media Uploader/Gallery on a Custom Post Type Edit Page

This post shows how to remove unwanted fields from the media uploader. It works great, but I want to limit it to a custom-post-type and I can't seem to figure out how to do it. I've tried the ...
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 ...
0
votes
1answer
56 views

Whole bunch of errors on WP website - media upload, edit slugs, edit screen not working [closed]

I am having a problem which I didn't meet before. I took a client website for just a small bunch of modifications, so I wasn't there when WordPress was installed or when the theme was developed. But ...
0
votes
1answer
399 views

How to move an image in a plugin to the upload directory and make it as a media of wordpress?

How to move an image in a plugin to the upload directory and make it as a media of wordpress? I would like to use them in posts. Expand question: I would like to generate images using other ...
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 ...
-1
votes
1answer
141 views

How can I attach files without using a plugin?

I want to add files from my site or from external links with files to any of my posts, and be able to add the size of the file and choose which ones it will do "File Force" and which not. I want to ...
1
vote
1answer
242 views

Float images in content

This is not a programming question. I have the problem to update the content in my WordPress blog. I'm very aware this problem can be solved by html modification. But my client doesn't know about ...
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 ...
-1
votes
1answer
174 views

Media Custom Fields - get a value with PHP

How to get a value of a field set with Media Custom Fields (programmatically)?
1
vote
3answers
3k views

Settings in 'Media > Settings' is ignored when inserting images

When I upload an image, it is automatically resized as I would expect, however the sizes for inserting the image seem to ignore the settings I've placed in Settings/Media. In my media settings I ...
1
vote
1answer
143 views

Post Specific Uploader

I have played around with filters for uploading files. The closest I have gotten is to have the files uploaded to the directory, but after the file uploads, I get a series of errors: Undefined index: ...
0
votes
2answers
2k views

Media is not attached after import

I am new there and I need some help for importing a wordpress blog. I have a old wordpress 3.1 blog (no multisites) and need to move to new hosting (a sites under multisites). I don't have the access ...
0
votes
1answer
388 views

How to fetch only media that was already attached to a post/page?

Situation: my client has this simple gallery built with WP_Query showing the latest media added to the site: $cola = new WP_Query( array( 'post_type' => 'attachment', 'post_status' ...
3
votes
1answer
796 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 ...
1
vote
1answer
84 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
534 views

Woocommerce blank screen variable product attribute image thumbnail

I am using woocommerce, I have setup a variable product. Under each attribute, when I try to add a thumbnail image by clicking on the Insert Into Post button for the Media Uploader dialog, the dialog ...
0
votes
2answers
396 views

formatting horizontal and vertical images in Settings?

I have several custom media sizes we always use. vertical: 95x117, 130x160 horizontal: 440x304, 220x152 home: 260x160 Is there anyway to set the thumbnail, medium and large to vertical parameters ...
-1
votes
2answers
329 views

Moving Categories submenu to Media, but still opens Posts menu

I'm developing a very media-centered site with WordPress and am using the default categories and tags on uploaded media using, in part this plugin Media Categories. I am displaying a sub-menu item ...
0
votes
1answer
581 views

Loop through all media library images and return those where caption contains the text carousel

Im new to Wordpress but I'm looking for a way to loop through all the images that have been uploaded to the media library and output the SRC, description and caption of the image when the caption ...
0
votes
1answer
86 views

“Securing” images in WordPress

I'm generally against the practice of making images difficult to download on websites. However, we have a number of photographic contributors who grant us exclusive free access to their images. Not ...
0
votes
4answers
895 views

How can I receive the image id using the media box?

The code below allows me to retrieve the image string, when Insert to Post has been pressed, but what would be the correct way to retrieve the ID of the image? So I can retrieve all information ...
5
votes
4answers
1k views

How can you change the 'Insert into Post' title in the media button?

Actualy the question says it all. I integrated a media upload box to my admin page and a button with the text 'Insert into post' makes no sense. I rather like to change it to something like 'Use this ...
9
votes
1answer
1k views

Custom post type with a forced fixed aspect ratio image crop

What I am looking for is similar to a couple other questions. The links are: Creating an Image-Centric Custom Post Type? Using Default WordPress Custom Header Image Crop Feature in a Post Type / ...
1
vote
2answers
370 views

Rotating image does not work for custom image sizes

When rotating an image with the WordPress image editor it creates new images and renames all of the images for the thumbnail, medium and large image sizes that are default for WordPress. My problem ...
4
votes
2answers
469 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 -- ...
1
vote
1answer
695 views

How to retrieve alt attribute for an attachment (uploaded image)?

I have some IDs of attachments (images, not from current post). How to I get the alt attribute for those images? I have tried to look into wp_get_attachment_image_src and wp_get_attachment_metadata ...
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 ...
3
votes
2answers
348 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
9k 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
358 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
337 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
83 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 ...
2
votes
2answers
750 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
321 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 ...