All Questions
41 questions
0
votes
0
answers
40
views
Custom gallery displayin and sorting error
I am making frontand gallery uploader. Here is my example code:
<?php
//start of "for" loop
$attach_id = media_handle_upload($key, $post_id);
$attach_ids[] = $attach_id;
...
0
votes
0
answers
132
views
problem when uploading file by metaboxes
I want to upload pdf files via posts using metaboxes.
I have this code:
if ( is_admin() ) {
add_action( 'load-post.php', 'call_MetaBoxClass' );
add_action( 'load-post-new.php', '...
0
votes
0
answers
19
views
add instructions to upload pages and / or forms
I want to put file prep instruction on the media upload forms/pages/tabs.
There are a lot of people using the admin. There is a CMS guide but it is rarely read causing issues with page load slow ...
1
vote
2
answers
519
views
Upload Button in meta box not opening library
First, thank you for your help.
I have created a custom template, added two metaboxes in Pages using a 'Page_Fiche_Metier.php' template.
One meta box is to upload an image. But the Upload Button is ...
1
vote
1
answer
18k
views
How to add meta box for image upload using WordPress media uploader?
I don't want this thickbox popup when uploading the image file via metabox. I want to add WordPress media upload popup box while uploading the media with the use of metabox. Any ideas?
2
votes
1
answer
8k
views
wp is not defined error using wp.media to create a custom image uploader
I'm trying to create a custom media uploader in a custom meta box on a custom post type. That's a lot of custom. I have a javascript file enqueued which runs the wp.media class when the Add Image ...
1
vote
1
answer
2k
views
window.send_to_editor and jQuery .attr() conflicts with multiple custom upload image meta boxes
I have added two custom meta boxes to a custom post type. One is to upload an image to be stored in a custom field value for a "headshot" and the other is to upload an image to be stored in a custom ...
0
votes
2
answers
165
views
Custom Upload Adds Ghost File
I've tried this on a fresh install on the twentyfifteen theme. I'm adding a metabox to pages which allows uploads - Whenever I upload a file on a new Page it uploads the file but also adds another ...
0
votes
1
answer
299
views
Generating image sizes when uploading through wp.media
Finding documentation on wp.media is really tough, so bear with me.
I'm creating a metabox to attach images to a custom post type. I'm able to get a media frame to open, have it accept uploads, and ...
0
votes
1
answer
257
views
problem with updating metabox of upload image
I created a custom post type and metabox for uploading another image. the problem is when i add the image its shown correctly in its place in backend and when i update its also the same i had the ...
0
votes
1
answer
2k
views
Saving an upload media meta box field
I'm using the answer for this previous question (link below) to generate a custom meta box with media upload functionality:
Add "upload media" button in meta box field
I've managed to get ...
1
vote
2
answers
368
views
WPAlchemy MediaAccess inserting media link in WP Editor instead of custom field in metabox [closed]
I'm currently working with WPAlchemy class to create a metabox in a custom post type (Events from EventEspresso plugin more precisely).
This metabox should be able to call the media uploader and ...
0
votes
1
answer
413
views
Custom Meta Boxes and Fields for WordPress: Change directory upload based on user-edit page
I have already published this on StackOverflow, but I realised it would be better to post it here instead.
I am using the CMB script (Custom Meta Boxes and Fields for WordPress) for uploading files ...
4
votes
1
answer
26k
views
Add metabox with media uploader in a custom post type [duplicate]
I need to create a "media uploader metabox" and add it to my custom post type.
I've already create normal metaboxes, the function to add to the custom post type and the function to save them, I only ...
0
votes
0
answers
227
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 ...
4
votes
2
answers
18k
views
Adding upload button in metabox
I want to add upload image button for the images and retrieve url.
Can someone pls help me, i have been trying this for quite a few days. I'm using code from this thread Create more Meta Boxes as ...
0
votes
1
answer
632
views
Insert media button will always add into the same tinyMCE editor
I have an issue with the insert-media button. I have 2 instances of tinyMCE with both Add Media button. When I add a media in one of the two tinyMCE, all my media will go in this after, whatever which ...
1
vote
2
answers
1k
views
Wordpress 3.5 Media Uploader - Only allow 1 upload and certain file types
I am trying to include the new WP Media Uploader in a Custom Meta Box.
I found this tutorial.
However, I am looking for a way to limit the uploader to only accept certain types of files like '...
1
vote
1
answer
3k
views
Customize Wordpress Media Upload and New Media Manager Menu in add post Metabox
I am using Wordpress Media Upload (< 3.5) and Media Manager (>=3.5) in metabox as an upload field, and need to customize the menu so that they only have upload and media library functionality ...
0
votes
1
answer
4k
views
Invalid file type when using wp_upload_bits to upload PDF to a custom post type
I'm trying to upload a PDF file for a custom post type called Products using wp_upload_bits. I'm only doing this in my wp-admin. I don't want these files added to the media library, I just want to ...
1
vote
1
answer
2k
views
Checking if $_FILE isset for an array of file upload metaboxes
I have been struggling with this for almost 2 days with no avail. I have a custom post type of PRODUCTS that has a group of metaboxes for uploading PDF files in the wp-admin. I've created the ...
21
votes
2
answers
63k
views
Add "upload media" button in meta box field
I have a custom post which has a meta tag that needs to be using a file upload (for video files). I am wondering, what is the correct way of adding an "Upload" button that points to the WordPress ...
2
votes
1
answer
567
views
Metabox with multiple fields added by user and upload box
I'm trying to build system, where user can add as many fields as he needs to the post. I'm using code from this thread. Everythings works fine, except I can't get my upload working.
Here's code I've ...
1
vote
3
answers
2k
views
Setting multiple image urls using Wordpress' Media Uploader
I have set up a meta box to hold additional information that my client can put in, and it will appear in a different section of the page.
The page shows up at
http://96.125.170.106/~prestonp/?project=...
0
votes
2
answers
909
views
How to use media upload on metabox post page without breaking TinyMCE?
I'm using the following code for upload in multiple mextaboxes in a post or page admin section. Works for metaboxes but breaks the TinyMCE insert image. I want to know please how I can achieve this ...
3
votes
2
answers
2k
views
Remove tabs from media uploader for a CPT
I use the media uploader in a own meta-box for a custom post type called "premium".
The Thickbox opens after a click of the button in the meta-box and files can be uploaded.
Now I want to remove the ...
0
votes
1
answer
699
views
Metabox image upload value
I am using meta boxes from WP tuts this tutorial http://wp.tutsplus.com/tutorials/reusable-custom-meta-boxes-part-3-extra-fields/ everything works fine but I don't know ho to call value from image ...
4
votes
2
answers
22k
views
Upload multiple images in a custom metabox
I am new to theme development. I am trying to create a custom metabox that has the ability to upload a image. I am doing this on a page not a post. I want to output the images (multiple) onto the page ...
1
vote
2
answers
2k
views
How to Create an Image Upload Box for Custom Posts?
Is it possible to have an image upload box in a Custom Post Type?
I would like the user to be able to upload specific images just for the CPT.
0
votes
2
answers
3k
views
Adding URL of PDF from Thickbox in a Meta Box
I have created some meta boxes of pages on the theme i'm working on.
The idea is to have a input field, then a button to upload files.
The meta box is working properly.
When I click on the button, ...
2
votes
2
answers
2k
views
Adding uploaded images to editor from metabox instead of default popup uploader
I need to find plugin or create listing of all uploaded images for some post in custom metabox. And i can click to thumbnail for add image to editor in custom format.
I downloaded a lot of photos to ...
0
votes
2
answers
849
views
Create a custom post type for a photo post
I am looking for a way to create a Photo Post type. Basically a post that is a title and a single image. Where I am getting stuck is the actual attaching an image to a post. I would like to have an ...
18
votes
6
answers
24k
views
Add a Meta Box for uploading a SECOND Featured Image?
I'd like to add a meta box to my posts and page editor that will allow me to upload an image and use it as sort of a SECOND featured image. The idea is that my client will be able to upload an image ...
2
votes
1
answer
2k
views
Metabox image upload and custom field
Is it possible to
a) upload image in meta box (not using default WP image uploader) and then
b) get the path to uploaded this way image in a custom field?
2
votes
1
answer
1k
views
I need a Simple image uploader with a simple screen. WP default has too many options.
Hi guys I'm looking for a metabox type plugin that can upload ONE image into the post, that works with custom post types.
I don't want to use the default WP uploader because it has too many options, ...
2
votes
1
answer
4k
views
wp_handle_upload error "Specified file failed upload test" but still creates attachment?
Having a bit of trouble with an image upload custom meta box. What happens is the uploaded image is created as an attachment but the wp_handle_upload seems to kick back the error "Specified file ...
4
votes
2
answers
3k
views
Using media-upload.php to upload mp3 via custom fields
I'm trying to use the Thickbox file upload dialogue with a custom field to allow the user to upload an mp3. What I want to do is to grab the URL of the uploaded mp3 and save it as postmeta (saving the ...
0
votes
1
answer
414
views
Upload attachment from external site
For example, we have some image on the external site:
http://site.com/image.png
How do I upload this image to my wordpress as an image attachment by php?
Image should be copied to my uploads folder,...
1
vote
1
answer
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
1
answer
742
views
Duplicate Custom Header Functionality into the post edit screen
Within wordpress 3.0 you have the ability to create a custom header image with a very slick built in cropping tool.
I found out that the code being utilized for this is located within wp-admin/custom-...
4
votes
2
answers
2k
views
Attach Files Metabox
Does anyone happen to know how to create a simple "attach/browse" button that can be placed into a metabox which upon clicking it would open a lightbox where the user would be able to view all the ...