The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
86 views

change the_content images for different sizes (Desktop, tablet, mobile)?

This may be a complicated question so I'll try to explain it as easy as possible. I have three sizes for images in my post (thumbnail, medium, large, 640px, small) and I would like to change the size ...
1
vote
0answers
50 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, ...
0
votes
0answers
27 views

Passing more options to: wp.media.gallery.edit

I am calling the media gallery edit screen like so on the front end: wp.media.gallery.edit('[gallery ids="70,71,72"]'); The right images get loaded (70,71,72), but the media library shows just a ...
0
votes
1answer
67 views

Wordpress media upload multiple images

Media popup opens but faling to insert the images . After selecting images it goes page not found instead of closing the popup and returning to tb_unload. I found below code from the template which ...
0
votes
1answer
142 views

How to remove “Image Information” and “post date/author” from a media page?

I'm trying to use Wordpress to setup a simple website for my business, and I'm having issues with the gallery page. Once an image is clicked and brought to it's specific page, it includes author and ...
1
vote
0answers
32 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 ...
0
votes
0answers
50 views

Why does ini_get('post_max_size') return a different value inside wp_max_upload_size() than outside?

This code in an otherwise empty php file: var_dump(ini_get( 'post_max_size' )); ...in my Wordpress directory on the server will output string(3) "40M" (as expected). Putting the exact same line of ...
1
vote
1answer
79 views

What filter should I use to insert a button inside on Media>Add New

I am adding a new way to upload a media file to WordPress. So I am looking for a way to add a link or a button to the Upload New Media page. What is the recommended filter? Or is there another better ...
3
votes
1answer
158 views

Filter by post category in Media Library

I am trying to find a way to filter the Media Library by the Post Category that a Media item is assigned with. I can see that you can sort by "attached to" but this only get me a little of the way ...
1
vote
1answer
173 views

Remote upload file to server B

I'm aware this might be some of the hardest coding to do ever, but thought of giving it a try. Im basically trying to detect all (mp3) filetypes uploaded through the Wordpress media upload and send ...
0
votes
1answer
107 views

Use the WP media uploader dialog for uploading a form attachment (non-admin). Offering progress and drag and drop feedback

I am building a simple contact form (non-admin) that has an attachment field. Of course I can just handle the upload via WP's wp_handle_upload function. However, I would like to give my visitors a ...
0
votes
0answers
10 views

Proper way to secure certain uploaded files [duplicate]

I'm working on a site which includes a members-only area. Once logged in, a user should see pages and posts that are otherwise hidden from view, and should be able to access file downloads which are ...
0
votes
0answers
35 views

How to get media-button on front-end

I am using wp_insert_post to allow non-logged-in users to add post, and would like to have 'add-media' button as well on front-end. I tried wp_editor, but I don't want the text editor, just the ...
0
votes
1answer
50 views

Active Directory and group permissions

I'm trying to modify WordPress to have the following features: Users are created in Active Directory and assigned to groups. Users can login to WordPress via Active Directory. Pages can be locked ...
1
vote
2answers
354 views

How to add qtranslate multi language support for media?

The multi language plugin qtranslate works for custom post types but there is no capability to translate media information like title, description, captions for images. I am using the following code ...
2
votes
2answers
248 views

Is it possible to trigger some JavaScript when Media Popup is opened?

On one of my custom posts edit page I have a button that triggers the media popup onclick, with: wp.media.editor.open(); and while it brings up the media manager I'm not sure if that's the proper way ...
0
votes
0answers
12 views

Bulk img-rename images in gallery

I'm trying to add the content of some text-fields to the selected images of a gallery. I found out, how to create the input-fields. My problem is to get the content of the text-fields and write it to ...
0
votes
0answers
13 views

Migrating only media files

I have sort of a specific situation. I want to move my Wordpress site to a new hosting situation. The site has had weird problems in the past, so I was planning to do a fresh installation of Wordpress ...
0
votes
1answer
28 views

Custom image sizes

I noticed lots of articles on how to add custom sizes for images (media). But how would I be able to add a custom size such as "width:100% and height:auto" this way it will make sure the images are ...
0
votes
1answer
59 views

How can I add a default description to uploaded files?

Is there a way to add a default description for media files as soon as they are uploaded to WordPress? Specifically, I want to modify the code here to extract the text from PDF files and include it ...
0
votes
1answer
35 views

How can I add a Description column to the media library browser screen?

I'm trying to display the description of each file on the media library browser screen. I've found some code that adds a filename column, but I'm trying to modify it so that it will display the ...
0
votes
1answer
140 views

Wordpress core responsive video not working with shortcode

I cannot get the video from Wordpress core to behave responsively. I'm using the following CSS: .videocontent { width: 100%; height: 100%; max-width: 1024px; margin: 0 auto; } ...
0
votes
1answer
118 views

How can I modify the media upload form fields?

I would like to add a line of text under the description field in the media edit form to give users more direction as to how to fill out this field. What is the best way to do this? I know how to add ...
1
vote
0answers
42 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
1answer
117 views

media page returnig to 404 in rtmedia

I am using rtmedia plugin with buddypress plugin to uploading audio, video and image uploading. I am using latest version of both the plugins. But when I browse to media page(i.e ...
0
votes
0answers
118 views

How to upload an image using media uploader and return the image link to javascript?

I'm new to Wordpress, and i'm developing a plugin. I'm havin some troubles with image upload... Is there a way to call a JavaScript function in a onClick tag, that calls the Wordpress media uploader, ...
2
votes
2answers
163 views

Set a maximum upload count for users on a specific user role

For users with the Contributor user role, I want to restrict the total amount of images that they are allowed to upload. I found this code posted on an answer here: add_filter( 'wp_handle_upload', ...
0
votes
0answers
64 views

Link directly to media file through 'add link'

I'm trying to achieve exactly what the title says. I'm building a site for a client, and am trying to make the site as user friendly as possible. They aren't very IT literate, and already are ...
0
votes
0answers
86 views

Featured image and Media Grid

I am trying to get an image in Media Grid's lightbox to another page. I have the images set up in the media grid plugin and when you click on the image it opens a lightbox with a larger version of the ...
0
votes
1answer
416 views

Add SWF file to wordpress through custom template

I am trying to attach an swf file to my website. I have that swf file in my local system. But wordpress is not alowing me to upload the swf file into the media library. I want to add that swf to my ...
0
votes
1answer
17 views

Set featured link not showing

I created my own custom wordpress theme now i am able to add media to my site but the "set featured" link does not show, please i need some help on this.
0
votes
0answers
47 views

How to add multiple versions of the same featured image for SEO reasons?

I am currently writing a plugin that optimizes category pages in WooCommerce. The idea behind it is that a product can appear in multiple category pages and for every category page it appears in, ...
0
votes
0answers
133 views

Add Media + Quick Edit buttons not working

I just upgraded to Wordpress 3.6.1 and I have an issue, for the default twenty-twelve theme the add media and quick edit buttons work okay but when I created my own custom theme those buttons stopped ...
-1
votes
1answer
51 views

Where to set individual blog quotas?

I am administering a self-hosted, multi-site Wordpress 3.1.x site with a few hundred sites. 10 users have requested to have their quotas increased to 1GB. I can't do it for everyone, but I would ...
1
vote
1answer
181 views

Retrieving JSON data in ajax request from media uploader

I'm having some problems getting my JSON data that's being passed via an ajax request. I'm trying to implement the media uploader into a plugins settings page. I've got it functioning properly using ...
0
votes
2answers
97 views

Stylesheet being loaded outside of <head>

Wordpress (3.6) is loading two stylesheets (mediaelement-css, .../wp-includes/js/mediaelement/mediaelementplayer.min.css?ver=2.13.0 and wp-mediaelement-css, ...
0
votes
1answer
77 views

Add select field to media uploader that adds a class to the image

I'm looking for a way to add a <select> menu to the media uploader that will have two options: normal image, which will do nothing, and profile image, which will add a CSS class to the image if ...
0
votes
1answer
299 views

How to store media files in subdomain

In order to parallelize downloads, i created already a subdomain for images. images.mydomain.com Now, i don't know how to move my media files, without breaking attachments, and after that, in the ...
4
votes
1answer
100 views

Upload specific images to specific folder

I am trying to find a way to upload few selective images to selective folders in WordPress but not able to find a way so far. I do not want to change default work press setting to upload images as ...
0
votes
0answers
35 views

Problems after transfering WP

After transfering my Wordpress to a new domain I can't add new things like images to post or even "text field" to widget area. I see only white blank page after that actions. Everything else looks ...
0
votes
0answers
39 views

Set padding for all content except images and few more elements

I want to have left and right 10px padding for all content inside post/page, but not for images, videos, galleries, tweets, pre, hr and few more. So that elements must be full width. So I set: ...
0
votes
0answers
30 views

Wordpress / Audio player

I need to build a website with an audio player. This audio player needs to play music without stopping when content is loaded. I know this might be a little complicated but I would like to know if ...
1
vote
1answer
585 views

Audio and video shortcodes not working properly

I'm having some trouble with Wordpress's built-in shortcodes for audio and video. When I embed a video, it basically gives me a black box and has a link to download the file at the top; when I embed ...
0
votes
0answers
85 views

show/hide attachments

Is there a way to show/hide attachments in my case images on a post. What I want is to mark an image as "hidden" and then only show it to the admin and hide hidden images from a normal user I know ...
0
votes
1answer
130 views

Set a custom URL for image in the Media Library?

I'm having some real frustration with the Media Library, as a WP beginner. What I'm expecting is that I can upload an image, and then reuse that image where I want within the site, using a standard ...
1
vote
1answer
730 views

“Add Media” button in custom plugin

I'm writing a custom plugin and i would like to add the "Add Media" button. I just need to upload media, not to retrieve any content/data from the uploaded file. How can I add this button? Thanks
0
votes
0answers
34 views

Display image attachment meta-data in gallery

I have a gallery that displays the pictures of the staff of an organization I'm building a site for. When a user clicks on the staff members picture, that attachment page opens up and displays the ...
0
votes
0answers
346 views

http error when uploading media files

I am having this same annoying issue many other have: When I am trying to upload images into Wordpress via the media uploader, it gives me an http error. Now I have tried the following, but nothing ...
1
vote
1answer
232 views

Media handle sideload not working

I am using this media uploader wp snippet which downloads an image from my one site to other. It was working fine until yesterday but I checked this morning, it wasn't working. ...
0
votes
1answer
25 views

How to change archieve frequency of the media file in uploads folder for wordpress blog

So far I can see my media file is divided into month and year as 2008/09 like directory. But I am getting concerned because I am currently hosting a community listing site that may incurr more than ...