Meta Box
Plupload on frontend (4 posts)

  1. Vitor Mozer
    Posted 3 years 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!


  2. Marco Panichi
    Posted 3 years 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']."' />

    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
    Posted 2 years ago #

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

  4. esmi
    Forum Moderator
    Posted 2 years 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