WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am new to php and I am using wpalchemy to create a custom metabox. I want to output the info from the metabox on a template page, not inside a loop. I have tried the following to no avail per the documentation on wpAlchemys site. Side note I want to create a custom metabox with the ability to upload multiple images is wpalchemy a good starting point to do this.

    global $custom_metabox;
share|improve this question

try specifying the ID of the post for which you need to get data from:

share|improve this answer
I Tried $custom_metabox->the_meta(2); based on my url /wp-admin/post.php?post=2&action=edit to no avail – Anders Kitson Mar 14 '12 at 17:25
I am actually trying to do this with the image uploader tutorial off your site. The multiple image uploader metabox is working, but I don't know how to output it on my template – Anders Kitson Mar 14 '12 at 17:27

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.