For now, I'm using a workaround by setting up the gallery in the main post editor and writing the_content() in my template where I want the gallery to appear.

However, the one big problem with this is that because the size of the gallery is set based on the original place it is displayed — I.E. the single post template — the same gallery can't be displayed in a smaller div container elsewhere in the template without its height extending beyond the bounds of the div. It tries to maintain the original size. Setting it to 100% and defining the height of the second div container does nothing because it still tries to respect the 100% of the original div on the single post. Which isn't exactly responsive.

Basically I'm using that plugin to create custom post types with archives, custom permalinks etc. It also lets you create custom fields and metaboxes. I'm not totally sure how it works but I'm referencing those custom fields other places in my theme and there's no problem. So I'd imagine they behave just like custom fields created in a theme.

I tried your suggestion but that's not working either. It gives the same response.

Thanks for your help!

Any chance the Juicebox plugin will use template tags in the future? It's a fantastic plugin but that would make it more fantastic.

Nevermind, here: [Link deleted.]

Sure. I used a premium plugin to generate the field. Is there any way I could send you the archive in a PM or email?

Doesn't work. :-(

[Edit: OK, looks like you deleted your post...]

I need to display a juicebox gallery from a shortcode in a WordPress custom field. I uploaded my files through this custom field and that went fine and even displays properly if I put the shortcode in the default editor.

However, whenever I try and parse the contents of the custom field to display the gallery, I get the message "WP-Juicebox Gallery Id cannot be found."

Here's some example code that's not working:

<?php
// Get the slideshow's Juicebox shortcode
$juicebox = get_post_meta( $post->ID, 'slideshow_embed', true);
                                                
if ( $juicebox ) {
    // Render Juicebox shortcode inside div
    echo '<div class="slideshow-container">';
    echo do_shortcode( $juicebox );
    echo '</div>';
}
                                                
?>

I've also tried

echo apply_filters('the_content', get_post_meta($post->ID, 'slideshow_embed', true));

to no avail.

Any ideas?