WordPress.org

Ready to get started?Download WordPress

Forums

Meta Box
Plupload on frontend (4 posts)

  1. cenografia3d
    Member
    Posted 1 year ago #

    Hi there,

    I'm trying to use multiple upload from the frontend. Does anyone knows how can I do that? I want to use the Plupload but I don't know how to get the info files through the plugin.

    Could you help me, please?

    Thanks a lot!

    http://wordpress.org/extend/plugins/meta-box/

  2. Marco Panichi
    Member
    Posted 10 months ago #

    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 )."']" );
  3. landwire
    Member
    Posted 4 months ago #

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

  4. esmi
    Theme Diva & Forum Moderator
    Posted 4 months ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic