0
votes
0answers
32 views

WP_Customize_Image_Control is not doing very much

I am trying to add a logo option. The section and the option shows up under Appearance - Customize as expected. It offers me to upload an image. I do that. The image gets uploaded, but the option ...
1
vote
1answer
82 views

How to move wp-content (or uploads) outside of the Wordpress directory

I am trying to move the wp-content directory outside of the wordpress directory and hitting all kinds of weird problems. Even though ...
1
vote
0answers
41 views

WP_Customize_Image_Control generating error when used

I'm adding some customisation controls for my theme, but I've hit a snag with the WP_Customize_Image_Control class. The control is showing, but whenever I try and upload an image I receive the ...
0
votes
3answers
133 views

Removing Image Sizes for Custom Post Type

I'm trying to go about this without the use of a plugin, but actions and filters Is there a way to remove extra image sizes generated by WordPress based on the Custom Post Type? I've been trying to ...
0
votes
0answers
71 views

Custom User Role: Upload and edit images, but not edit posts - any other way?

I have a question pretty similar to this one: Why does my custom WP role need edit_posts to edit images? but I couldn't make their solution work. And I couldn't comment there because I don't have ...
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
0answers
40 views

custom Image upload coding wordpress

Hello im working on WordPress plugin with separate data tables in same database. so far im doing okay with add new post. I want to add images to my post. I tried many things but so far I've got ...
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
2answers
62 views

How can I create more “create attachment” custom field - any idea?

define('MY_POST_TYPE', 'myslider'); define('MY_POST_SLUG', 'myslider'); function my_register_post_type () { $args = array ( 'label' => 'Gallery', 'supports' => array( ...
0
votes
0answers
75 views

Add CSS Classes Field to Media Uploader

I need a functions.php hook that will allow me to add the standard CSS Classes field to the "ATTACHMENT DISPLAY SETTINGS" section of the Media Uploader modal. I know the css class field can be ...
0
votes
0answers
84 views

Upload button in metabox not working

The upload button is not working when put inside javascript, but it works when I put it outside the javascript. /* -----------------------upload button------------------ */ function ...
0
votes
0answers
234 views

Custom file upload URL *and* URL path?

WP 3.5.1 has (in)famously decided to drop a very useful feature of customizing media upload path and URL. Because we use a CDN for static content, we absolutely need this feature. In wp-config.php ...
0
votes
1answer
57 views

Upload files in wordpress

What is the best way to upload files in wordpress? How can I upload multiple files at a time like media uploads in wordpress?
0
votes
0answers
36 views

How do I add populate media files from my plugin

So I am creating a plugin that will be able to upload a special kind of video. I added a two new tab under Media Page called "Add New Custom Video", "Custom Video Library" - I was able to call the ...
1
vote
0answers
116 views

custom upload directory only for plugin uploads

i'm trying to add an upload_dir filter only for plugin-uploads. does anybody know why the code below doesn't work, and what could work instead? thanks in advance! $upload_dir = 'publications'; ...
2
votes
1answer
104 views

Hide upload image fields for the different media upload popups

I am trying to change a few of the options in the Set Featured Image popup in the Wordpress admin. I can't seem to find anything that determines if the popup window is a Featured Image or an Add Media ...
0
votes
1answer
137 views

Custom image sizes ignored in WP 3.5

Since migrating to WP 3.5 I discovered that my custom image sizes get ignored - whenever I try and output one of them WP just defaults to the original image instead. Kind of frustrating... Any idea ...
0
votes
2answers
1k views

Gravity Forms - Repeatable “File Upload” field using “gform_column_input_content” filter

I am looking to use the gform_column_input_content filter to make a repeatable file upload element. The filter modifies the HTML content of the list field column input tag. The following code ...
0
votes
1answer
764 views

How to change the wp_upload_dir() path in plugin

I am using one plugin to upload all the client files. By default all the uploading files stored in the path wp-content/uploads/-plugin-name- . How to store all my files in my custom directory that ...
10
votes
2answers
608 views

Specific upload folder for PDFs in custom Post type in WP multisite

I need to filter uploads to a specific folder for a custom-post type called "document" only for PDFs. So far, I have: function custom_upload_directory( $args ) { $base_directory = ...
1
vote
1answer
131 views

problem in uploading attachment to custom directory

i have been trying to upload the attachments to the custom directory without affecting the old uploads. so i use this bellow code to achieve that add_filter('wp_handle_upload_prefilter', ...
5
votes
1answer
300 views

Limit Media Library to Given Folder

I have made a plugin that uses the Media Library to allow users to upload files to a specific directory - using the upload_dir filter. I would like to know if there is a way (i.e. a filter) I can use ...
2
votes
2answers
168 views

Looking to display non-image files in Gallery with logo specific to file type

When I first began looking into this, File Gallery got me much closer to solving the problem. The only issue is that the plugin only displays the generic non-image icon when I upload a file. Does ...
2
votes
1answer
1k views

front end post with multiple upload images?

I am using front end post with upload image, my code if (!function_exists('wp_generate_attachment_metadata')){ require_once(ABSPATH . "wp-admin" . '/includes/image.php'); ...
2
votes
2answers
799 views

What's the best “insert all images” plugin?

I've tried several plugins that supposedly allow you to "insert all images" after using the flash based uploader to upload multiple images. However, I still haven't found one that ties in well with ...
0
votes
1answer
222 views

WordPress uploads directory. Featured Images storage

WordPress stores all uploads in: /uploads/year/month/ I want to store featured images of my custom post type like: /uploads/myCustomPostType/ No date subdirectories etc. I want all the files to ...
1
vote
1answer
264 views

Add a InfoBox in the media upload window

I am trying to add a InfoBox (just infotext for the user) to the media upload popup window (se mockup link). Any tips on how to adress this feature? Filter hook? Other solution? Thanks in advance. ...
1
vote
2answers
963 views

Insert attachment ID in custom field from media uploader

This is what I want to do: In the media uploader, add a link "Use this attachment ID as custom field". Add the attachment ID in a custom fields meta box. I've searched for hours for a plugin that ...
0
votes
2answers
3k views

Automatically wrap post image in div

In regards to image attachments inserted into a post, I would like to wrap the img tag inside a div tag for specific design purpose. Is there a way to do this automatically after attaching the image ...
2
votes
1answer
859 views

media_handle_upload weird thing

I am using a front end script to upload images , all works fine but recently i noticed the uploaded images are not saved in proper directory. My settings are to Organize my uploads into month- and ...
0
votes
1answer
3k views

I'm using add_meta_box() but want to include TinyMCE editor *and* Media Uploads for each box

I'm using a very lightweight plugin called WPAlchemy that lets me rapidly create meta-boxes for posts and pages. I've ben able to convert <textarea>'s into rich, TinyMCE's editors just fine. ...
1
vote
1answer
1k views

Create custom fields as image uploads [duplicate]

How can I define a custom field that works as an image upload? Should be fairly basic but I can't seem to find the solution. Let's say you create the post type 'book' and want to create 3 fields: ...
0
votes
1answer
61 views

Is there any way to modify images from a theme using the web interface?

Is there any way to modify images from a theme using the Wordpress web interface?