Support » Plugin: Meta Box » Plupload on frontend

Viewing 3 replies - 1 through 3 (of 3 total)
  • Marco Panichi

    (@marcopanichi)

    In order to show a gallery you can use this code:

    $post_id = get_post_meta(get_the_ID(), 'MY_FIELD_NAME', false);
    $excagriqID = get_the_ID();
    $images = rwmb_meta( 'MY_FIELD_NAME','type=image');
    foreach ( $images as $image )
    {
    	echo "<div class='item'>
    		<a href='".$image['full_url']."' title='".$image['title']."' rel='". $excagriqID ."' class='thickbox'>
    			<img src='".$image['url']."' width='".$image['width']."' height='".$image['height']."' alt='".$image['alt']."' />
    		</a>
    	</div>";
    }

    In alternative, if you want to use shortcodes to show the gallery:

    $images = rwmb_meta( 'MY_FIELD_NAME','type=image');
    $images = array_keys($images);
    echo do_shortcode( "[gallery ids='".implode( ',', $images )."']" );

    Was there any solution on how to call plupload on the front end?

    esmi

    (@esmi)

    Forum Moderator

    @landwire: If you require assistance then, as per the Forum Welcome, please post your own topic.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Plupload on frontend’ is closed to new replies.