Tagged Questions
0
votes
0answers
40 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
31 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
18 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 ...
0
votes
0answers
33 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';
...
0
votes
0answers
29 views
Multiple media upload frames
Hello WordPress users,
I'm stuck with a problem while building my WordPress plugin.
I want to use 2 Media Upload iframes in on one plugin page.
I tried multiple scripts. Curretly I'm using the code ...
2
votes
0answers
58 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
0answers
110 views
Wordpress custom file upload in page
I'm currently using this code for PHP file upload (found directly on the wordpress page):
<form enctype="multipart/form-data" action="upload.php" method="POST">
Please choose a file: <input ...
0
votes
1answer
79 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
1answer
328 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
305 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 ...
9
votes
2answers
251 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
99 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', ...
4
votes
1answer
206 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
98 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 ...
1
vote
1answer
832 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
747 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
155 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
216 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.
...
0
votes
2answers
758 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
2k 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
664 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
2k 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: ...
