An image, audio or a video comprises a media.

learn more… | top users | synonyms

0
votes
1answer
32 views

How To Pick Custom Size Of Uploaded Image In Theme Via the_post_thumbnail();?

I am designing a magazine style theme and I want different image sizes as to show on index.php page. Now for this, I am using <?php the_post_thumbnail( array(100, 100) );?> but it is picking ...
0
votes
0answers
37 views

Used Duplicator to transfer a site. Now my media uploads aren't working

I deleted an image from the Media tab and when I tried to upload another, I started getting this error: The uploaded file could not be moved to wp-content/uploads/2014/10 I tried CHMODing the ...
0
votes
0answers
13 views

Get URL value from 'ATTACHMENT DISPLAY SETTINGS'

How do I get the URL from the 'ATTACHMENT DISPLAY SETTINGS' > 'LINK TO' secion of the media upload when listing attached images using the following code. <?php $args = ...
0
votes
0answers
34 views

Wordpress Media Upload Plugin 3.5 JS PHP

I have a small issue creating a small plugin. I am trying to achieve a gallery meta box using Media Upload 3.5. At this point I am able to upload images, but when trying to update the image. I wont ...
0
votes
1answer
17 views

How to get only current images of a post

I am new to WordPress. I have created a template page where I want to show single posts, So to get media of that post I am using a function $args = array( 'post_type' => 'attachment', ...
0
votes
1answer
16 views

Run filter if only it was run from specific admin page ( 'upload_dir' changed )

The situation is following: In WordPress, there is a plugin page created with optionality to upload media files. The code added to this plugin, that changes the upload directory by adding of filter ...
1
vote
0answers
23 views

Modify how gallery.js builds the shortcode [gallery …] in tinyMCE?

The post editor helpfully removes default arguments like columns="3" from the [gallery] shortcode. How do you tell it to remove a custom attribute that has a default value? The answer at Enhance ...
2
votes
0answers
62 views

Saving data-URI to media library

I have a TinyMCE plugin that generates PNG images using HTMLCanvasElement.toDataURL() (MDN). Currently, I'm just displaying them on the backend by putting the data-URI in an image tag, but I'd really ...
0
votes
1answer
39 views

get link of inserted media file of post within loop

inside the loop I would like to retrieve the URL of an inserted media file of each post. My attempt was: <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <a href="<?php ...
1
vote
1answer
29 views

Is it safe to allow non-admin users access to media uploader

Hi fellow Wordpress users :) I wanted to ask is it safe to allow non-admin users access to WordPress media uploader. Can they inject a virus while uploading media? How is WP system fighting against ...
0
votes
2answers
59 views

Theme stops media uploader from working

I took over a website from a previous developer that built most of the site. Because the theme was a custom one, he chose to do it using Toolbox. The site has been standing for just over a year, and ...
1
vote
0answers
79 views

How to run custom JavaScript code on gallery attachment image selection

On line 4620 of media.views.js is this: media.view.Attachment = media.View.extend({ ..... select: function( model, collection ) { ..... I would like to add some more features to this ...
0
votes
0answers
12 views

Multisite Uploads

I have a wordpress multisite installation for multilingual press. Right now everything works fine, but I have a problem with the uploads. I have some custom fields (acf) for picture uploads, ...
0
votes
0answers
12 views

Manage Custom Gallery Shortcodes using Media Manager

I would like to create multiple gallery shortcodes (ie [gallery],[gallery-grid],[gallery-slider],[gallery-simple],etc.) I know how to create custom gallery shortcodes, but I was would like to use ...
0
votes
0answers
33 views

Images are registered in media library but still won't show up

I'm working on creating a copy of a wordpress site on a separate domain hosted on the same server as the original. I created the new database with the correct domain and everything is working properly ...
0
votes
0answers
8 views

Single Button with [audio]

If I use the [audio] shortcode I get this: But I want a button that just plays and pauses (i.e. using mediaelement, I only want { features: ['playpause'] }
0
votes
1answer
15 views

How do I display image files as links?

I'm a WP newbie and need some help. I have about 5000 images to upload to my site and need to link each one with a specific entry in a list. The thought of going through 5000 entries (it's a plant ...
0
votes
0answers
19 views

Custom wordpress media upload tab with the attachment browser

I've managed to add a new tab to the "Add Media" window with the help of this answer. Now I'm trying to add a custom gallery type in this tab. I'm trying to add the default attachment browser in this ...
-1
votes
0answers
10 views

show only uploaded image in media library after uploading

I am looking for solution for showing only uploaded image in media library after uploading it from add media. is this possible in wordpress. Thanks
0
votes
0answers
11 views

Modifying Attachment Details using print_media_templates()

I am following this code sample Custom Link In Wordpress Media "Attachment Details" Upload Screen in an attempt to display a warning if the file is too big. I still want to allow big files ...
0
votes
1answer
20 views

How to associate media with a post?

We are using a WP LMS and use custom posts for the courses. I would like to have an area in each post where there are course materials. So on the backend, a section for materials and the front end ...
1
vote
0answers
47 views

How to make a customized “Create Gallery” tab in the 'Add Media' window?

I'm developing a plug-in and wanting to make a customized version of the the "Create Gallery" tab of WP v4.0, but have the resulting output (i.e. what gets inserted into the TinyMCE editor) to be ...
0
votes
1answer
61 views

How do I control video media display sizing with native wordpress player

I was hoping to use the native wordpress video player, but I'd like to 'expand' the video size on the page. Is that possible? I can't seem to make this work. Actual MP4 video size = 640 x 360 ...
0
votes
0answers
26 views

I'm using mediaelement for audio player and playlist. What to call in ajax callback for reload players?

The object is enough clear I think. I'm using mediaelement for audio player and playlist. What to call in ajax callback for reload players? Because after call in ajax of a page (I'm using ...
1
vote
1answer
43 views

Passing jQuery into the Wordpress media uploader

In a Wordpress plugin that I am working on, I am using the built-in Wordpress media uploader function ( wp.media ) to add photos. I am using the selection option to pre-select images in the media ...
0
votes
1answer
32 views

Remove Media File Items From Server That Do Not Exist in Media Library

Pretty much as the title suggests I have items on my server (images mostly) that do not feature anywhere in the media library. What is the best way to delete these? Is there a plugin or would I need ...
0
votes
1answer
57 views

XML-RPC: How to add media caption to uploaded image?

I need to migrate non-WP data from an SQL database to posts in WP, and thought that using XML-RPC in a closed environment before deploying was a smart solution. This is my first WP project, so I'm ...
0
votes
0answers
20 views

Import of 200+ sermons

While this not a Development-specific question for WordPress, I am looking for a way to import 200+ sermons for our church website.. I have updated the mp3 files wtih mp3tag and all look good. I am ...
0
votes
1answer
13 views

controlling whether upload is attached to post or not

I'm using the new (3.5+) media upload API to open a media modal dialog from a post meta box, and select a file from the media library (as per ...
0
votes
2answers
41 views

Can't upload media, permissions are correct

I did a manual backup and re-install of a WP site, and it worked fine. Then my client updated some plugins, regretted it and asked me to restore the site to its previous state. I used the same backup ...
0
votes
0answers
14 views

Media uploader edit image direct in edit-psot view

I want to make available to edit custom fields (its gallery) direct in edit-post view. Im using ACF plugin so I have this view: http://grabilla.com/04906-95db6a64-4c3f-497a-b312-67fff32ab21f.html I ...
2
votes
1answer
160 views

FTP files directly to Media Library wp-content\uploads

I would like to use an automated process to replicate a non-WordPress file folder in \wp-content\uploads\ and have the files automatically registered in the Media Library. I could use such a process ...
1
vote
0answers
40 views

How do I get around “Sorry, this file type is not permitted for security reasons”?

I was wondering how I could allow .tiff files to be uploaded in my wordpress site. I get the message "Sorry this file type is not permitted for security reasons". This question has been asked in ...
0
votes
1answer
24 views

Wordpress Media Image Manager — Creating Lots and Lots of Odd Sized Images

This is odd. Whenever I upload an image, I get a whole myriad of generated files. If I upload test_image.jpg (which is 971x698 pixels in size) I then get the following ten generated files: ...
0
votes
0answers
23 views

Exporting WordPress -> Flickr

I have all of my images stored in posts on my Wordpress blog, but I'm a tad worried what would happen if my web host were to go offline. I could back them all up by zipping the wp-content/uploads ...
0
votes
0answers
30 views

Remove attached media

I've created a custom Page Template that grabs all the attached media (images) to the page using get_attached_media(). I'm adding the media by clicking on Add Media button above page title. If I ...
0
votes
1answer
34 views

Make custom thumbnail size image in media_sideload_image function

I am using customize media_sideload_image just as provided in this post by @G.M. Now I want to create different sizes of images other than which WP default uses. Please provide suggestion
1
vote
1answer
47 views

Edit Image/Image Details - Replace button missing

I have a strange problem. I am dynamically populating content into Wordpress' tinyMCE editor. Part of this content is a placeholder image, that the user can then replace. The issue is when I click the ...
0
votes
0answers
28 views

Wordpress Media URLs?

I just launched a Wordpress site after having done all of the standard procedures: moved the uploads folder, uploaded the database, and did a search and replace on all of the urls in the database. ...
1
vote
1answer
46 views

Show attached media image if no thumbnail image detected

I use the if ( has_post_thumbnail() ){} to check if the post have thumbnail image, but this echo get_attached_media('image', $post->ID); displays the word Array I need to show the ...
0
votes
0answers
15 views

Echo Insert Media in input [duplicate]

my code input insert media <input type="text" name="Cat_meta[img]" id="upload_image" size="3" value="<?php if(isset ( $cat_meta['img'])) echo esc_html($cat_meta['img']) ?>"><br /> ...
0
votes
1answer
44 views

Create input select image URL?

My code in functions is: <input type="text" name="Cat_meta[img]" id="Cat_meta[img]" size="3" style="width:60%;" value=" <?php echo $cat_meta['img'] ? $cat_meta['img'] : ''; ?>"> How to ...
0
votes
0answers
36 views

Assign uploaded file to user

I'm developing a project in which I need to give the logged in user (editors) the option to "give" that uploaded file (media) to a specific user. In other words, i want to add an additional field in ...
0
votes
1answer
36 views

How do I secure a subdomain using UCC SSL?

I have a UCC SSL Certificate installed on my primary domain (example.com). I have 3 subdomains listed as Subject Alternative Names (SANs) (shop.example.com, distributors.example.com and ...
0
votes
1answer
82 views

Custom Link In Wordpress Media “Attachment Details” Upload Screen

When you click "Add Media" and from there select an image from that media library screen on the right you get a breakdown (the attachment details) related to that particular image. Right below the ...
0
votes
1answer
45 views

uploading images to specified directories

I am hoping that you can help me. I've tried finding plugins to do what I want to do but none of them really simplify the problem that I am trying to fix. I am trying to build a site for my ...
0
votes
0answers
19 views

Image path in posts (/uploads/yyyy/mm) does not match actual file location

I just moved to a new server and upgraded WordPress as well. Somewhere in the process my image paths in old posts got mismatched to the actual file location. All the old images are now broken. As an ...
0
votes
0answers
17 views

Intercepting 'Add Media' button click

I'm trying to simplify a little the media uploader for one of my clients. To do so, I'm trying to generate a new media uploader frame using 'wp.media...' on client side js. But when I click the 'Add ...
11
votes
1answer
168 views

Reject upload of wrong-sized images using the Media Uploader

I'm working on a super-strict setting for adding images to Custom Fields in the Post Edit screen. My optimal scenario would be to add a a Custom Error message when the user tries to upload an image of ...
0
votes
0answers
10 views

How do I set a featured image straight from the post text editor?

I'm dealing with a migration of 5,000 posts from a non-WordPress platform into a new WP install. I would like content managers to be able to open each past post in the admin, then merely click an ...