An image, audio or a video comprises a media.

learn more… | top users | synonyms

6
votes
0answers
158 views

Delete an attachment in the WP media modal window

I'm trying to create an option in the WP modal media window to detect duplicate files and delete a newer file if an older duplicate is found. I have the following code working (in conjunction with the ...
2
votes
0answers
12 views

Category checkboxes in upload modal

In a project I'm working on, I've enabled categories for attachments using: register_taxonomy_for_object_type('category', 'attachment'); In the edit attachment screen in the Media Library you see ...
2
votes
0answers
96 views

Upload path/URL weirdness for the main blog of a multisite/network setup

We have a WP network (with domain mapping) that was started pre WP 3.5, so it was using ms-files.php and wp-content/blogs.dir/ to store media files. I wanted to remove ms-files.php dependency and ...
2
votes
0answers
76 views

Extend Media Library

The Media Library in WordPress has "Insert from URL" link to the left. It accepts image URLs. It's not said anywhere but if you paste YouTube URL or <iframe> code then it will insert it too. It ...
2
votes
0answers
161 views

Change default tab of media manager

Is there a way to change the default media manager tab? I have managed to remove everything that I didn't want to show in media manager, using the instructions from the first post here Add a menu item ...
1
vote
0answers
13 views

Post and featured image have the same name, why is the attachment (image) is showing and not the post?

How do I get the actual POST to display - and not the thumbnail of the image? I have tried to redirect the attachment to the parent post, but that gets caught in a redirect loop. For an example - ...
1
vote
0answers
48 views

Add tinymce buttons to caption textarea in media uploader

I want to add some basic tinymce buttons ( Bold, italic, underline ) to caption textarea in media uploader in WordPress. (Shown in attached image) I dig a little bit into wordpress core in media.php ...
1
vote
0answers
21 views

Attach media to post by media category

I am attaching a media category to a uploaded media. When I am saving changes I'd like to automaticaly attach that media to post which name is the same as the media category. Has anyone done something ...
1
vote
0answers
57 views

Custom RSS Feeds & Post Meta Data

Rss feeds normally display media files along with post excerpts. I am using post meta to add media files to a post. Unfortunately, since the audio file is not being inserted into the main textarea the ...
1
vote
0answers
44 views

Retrieving Meta from Image Attachment

I currently have added a meta box to the media library popup using the following: // ADD CUSTOM INFO INSIDE THE MEDIA LIBRARY function AddLibraryFields( $form_fields, $post ) { ...
1
vote
0answers
34 views

Proper way to add a button to the top menu of the media library?

I want to add a simple button to the Media Library top menu (say, to the right of the bulk actions / filters dropdowns. I have scoured the WordPress codex for a proper way to do this and have found ...
1
vote
0answers
76 views

Media attachment pages giving 404's

I use Google Webmaster Tools to track and fix 404's. I've been getting numerous 404's from media attachment pages, but not the page itself, it's parent. An example: I have this piece of media, ...
1
vote
0answers
52 views

Export xml use/import images from theme directory

Is it possible to create demo.xml for a theme that when imported into fresh theme installation will use/import images from theme directory folder (e.g. theme/images/demo) rather than import media from ...
1
vote
0answers
54 views

Custom media uploader not showing library

i am developing a plugin that allows upload an image. Actually the plugin works fine it means, that if you upload an image, the image get set in the database, but, not show the images on the library, ...
1
vote
0answers
106 views

Bulk edit of EXIF data for jpeg images uploaded in the media library?

Although there's a number of plugins that display EXIF data in your posts or remove EXIF data altogether to save space, I couldn't find a solution to manually edit EXIF data for whole bunches of ...
1
vote
0answers
25 views

Upload box media size not working

I recently downloaded wordpress 3.5.1 and installed it on my website. This should be the website that is launched in the air. On the demo site when i click on Add Media and want to change the image ...
1
vote
0answers
51 views

Importing 10 Years of Media into the WP Database

I've been running the same website for 10 years now, and whenever I would create a news story, I would manually upload and store all my news images in a "news" folder via FTP and then manually write ...
1
vote
0answers
211 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 ...
1
vote
0answers
499 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 ...
1
vote
0answers
91 views

Custom links or pages from Media Gallery

I have a simple Wordpress Media Gallery running on a page and every time you click an image it takes you to the attachment page. This is fine as I can write an article in the description and that page ...
1
vote
0answers
66 views

Access to Media Library

Im trying to find a way to pull random images from either a post or wordpress's built in image library. Im not sure how to query image uris from a post or the media library - is there a tag or method ...
0
votes
0answers
9 views

When editing images, apply changes to specific image size

The image editor only has these options: Apply changes to: All image sizes Thumbnail All sizes except thumbnail I have a custom image size that that I'd like to only apply the changes to. Is ...
0
votes
0answers
6 views

Inconsistencies when inserting [video] vs [audio] and [playlist] using AJAX

Below are some test cases listed: Insert audio or video [playlist] in the back-end TinyMCE. Result: it's always 100% wide. View post with audio or video [playlist]. Result: it's always 100% wide. ...
0
votes
0answers
15 views

Media is not getting uploaded on specific site using wordpress xml-rpc

I am using WordPress XML-RPC to create post from one WordPress site to another WordPress site. Following is my code, my code is using these two functions. function ...
0
votes
0answers
7 views

Unattaching unlinked images

As I understand default WP behavior: When you upload an image to a post and save it (as a draft or published post), the image becomes "attached" to the post. This can be double checked by going to ...
0
votes
0answers
15 views

TinyMCE Add Media drag and drop

I am trying to use TinyMCE editor in custom page in wp admin "Settings" area. I am able to load it using wp_editor() with drag_drop_upload and media_buttons enabled. It loaded well. But the problem is ...
0
votes
0answers
17 views

Set Featured Image not opening - Stuck at loading

I am unable to set featured image for posts/pages. The 'set featured image window' opens but never loads and thumbnails. Then I tried to upload the image using Media, it stucks at crunching. But ...
0
votes
0answers
15 views

Mediaelement.js feature doesn't work

I am trying to add new feature to mediaelement.js. Here's one example http://mediaelementjs.com/examples/?name=loop Another example which I am trying to implement now is this- ...
0
votes
0answers
12 views

media uploader filter library so see only images without parent post

I am using this code to enable users to upload images from front end. I would need to filter the library tab to only how images that do not have post_parent set. Any way to do that? Code below: ...
0
votes
0answers
11 views

Rewrites and Attachments

I'm currently working on a custom post type that has rewrite tags to allow for sub pages. e.g: showcases/project-name/media/ Media being the page. My problem is with attachments and media uploads, ...
0
votes
0answers
47 views

WP 3.9 - default Media Manager

I need that in the admin edit page, when the user clicks on “add Media”, the default in the new frame will be “Create Gallery” and not “Insert Media”. I think, that the script for it is in the ...
0
votes
0answers
55 views

How can I rotate images in Wordpress?

I'm receiving the following error while I attempt to edit images within Wordpress: "Could not load the preview image. Please reload the page and try again." What would cause this? Wordpress ...
0
votes
0answers
18 views

How to put tags on photos in Windows that WordPress can read and apply on media files?

I'm creating a Stock Photo gallery on WordPress with PhotoPress Image Taxonomies by Peter Adams and I noticed that when I upload photos from iStockphoto, the taxonomies keyword is filled with tags ...
0
votes
0answers
16 views

define multiple post thumbnails

i'm building a page for catalogs which shows all subpages in a grid with their selected post thumbnail. That works without a problem. Now I need a solution how to define 2 more pictures as a special ...
0
votes
0answers
27 views

page displaying media caption shortcodes

I am developing my first wordpress theme. I encountered a problem in page section. I added a image in a page with add media button. When i viewed the page, it does display the image but also the ...
0
votes
0answers
20 views

Media upload freezes according to metabox order

I created a custom post type and 3 metaboxes for it in the admin section. It looks great and the admin panel for that custom post has, indeed, the 3 boxes. These boxes have all the same code (with a ...
0
votes
0answers
28 views

Wordpress media uploader button is not working

I'm developing my own plugin. for that i need to upload logo images. since i'm a newbie in wordpress i searched so many tutorials. the code i used is pasted below. the problem is when i clicks on the ...
0
votes
0answers
160 views

Open wordpress media library in 3.9.1 version

I can not speak English....I hope you understand my question. I have this code that opens the media library, but it only works in wordpress 3.6.1 and lower version <script> var file_frame; ...
0
votes
0answers
12 views

Add hyperlinks in media description

I want to add hyperlinks in the description box of a media file in the library but it won't display hyperlinks for some reason. It displays text but as soon as i put a href it hides it. i'm using ...
0
votes
0answers
19 views

Customizing the built-in Media Playlist

I have a simple challenge I can't quite seem to make any progress on: Get the current track (or video) playing and display a link to a transcript of the song. This should be a simple task (and the ...
0
votes
0answers
113 views

Inserting image into meta box row using jQuery - always adds to first row

I'm having a problem with inserting images into a custom post type meta box. I have a button that adds a row to the DIV and you click on the Select Image button to use the WordPress media selector. ...
0
votes
0answers
84 views

ACF Gallery & mqTranslate, Title and Description not displaying in other languages

I am using mqTranslate and ACF Gallery to build a gallery. Below is the code. <?php $images = get_field('home_slides', 'options'); ?> <div id="slider" class="flexslider"> <ul ...
0
votes
0answers
16 views

All files unattached in Media Library

After moving to new host all files unattached in Media Library, need a way to re-attach them. Thanks
0
votes
0answers
33 views

Upload in Media Library only shows a part of the picture (incomplete upload)

I have a wordpress application wherein I uploaded a picture using the media library. Unfortunately, my problem is that my picture is only uploaded half-way. My connection is fast. Can you give me tips ...
0
votes
0answers
31 views

ACF media fields

I'm using ACF to add galleries to a post type. In the gallery field you can click edit on an image and type Title, Alt Text, Caption and Description. These seem to be media related fields. I'm ...
0
votes
0answers
19 views

Apply cropping to custom size from media library

I want to be able to apply a specific crop to the medium size or any other custom image size i define. I want to control the crop as it is controlled in the media library for the thumbnail. I want to ...
0
votes
0answers
22 views

Upload more than one media files with a post

I am not sure if this has been asked to community before. I 'd like to have more than one upload custom fields with WP post. Could anyone please suggest if there is any plugin available for it OR ...
0
votes
0answers
49 views

Missing Images in Uploads Directory (Server Only)

I recently moved a WP install from our dev server to the clients server. Everything went fine, however, the site is missing a large amount of images. The dev site has the images in the Wordpress ...
0
votes
0answers
47 views

Media Modal load and select external images

I've been trying to extend WordPress/Backbone Modal to use in a plugin I'm developing; basically the point is that I host all my photos somewhere accessible via an API and I want to provide my users ...
0
votes
0answers
32 views

Dynamic banner for use on external sites

Pro question: we would like to display our most current wordpress articles on external sites (something like advertisments or banners). I think this could be easily done with iFrames, but I doubt ...