• Hi

    Please Help, Its Urgent.
    I am using Metabox plugin for last year for uploading multiple images in custom post . I am using Image Advanced to make kit happen. But now i am unable to do so. Every time when i try to choose images and save post all images go disappear and it save nothing.

    https://wordpress.org/plugins/meta-box/

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Anh Tran

    (@rilwis)

    Hi, can you post the code to register meta boxes?

    Also, if you have time, can you record the problem with http://recordit.co?

    Thread Starter vermashu123

    (@vermashu123)

    Hi Tran

    Thanks for reply. Here is my code

    add_filter( ‘rwmb_meta_boxes’, ‘katalog_register_views’ );
    /**
    * Register meta boxes
    *
    * Remember to change “your_prefix” to actual prefix in your project
    *
    * @return void
    */
    function katalog_register_views( $meta_boxes )
    {
    /**
    * prefix of meta keys (optional)
    * Use underscore (_) at the beginning to make keys hidden
    * Alt.: You also can make prefix empty to disable it
    */
    // Better has an underscore as last sign
    $prefix = ‘katalog_’;
    // 1st meta box

    $meta_boxes[] = array(
    // Meta box id, UNIQUE per meta box. Optional since 4.1.5
    ‘id’ => ‘katalog_views’,
    // Meta box title – Will appear at the drag and drop handle bar. Required.
    ‘title’ => __( ‘Katalog Views’, ‘meta-box’ ),
    // Post types, accept custom post types as well – DEFAULT is array(‘post’). Optional.
    ‘post_types’ => array( ‘katalog’,’katalog_mailorder’,’katalog_homegarden’ ),
    // Where the meta box appear: normal (default), advanced, side. Optional.
    ‘context’ => ‘normal’,
    // Order of meta box: high (default), low. Optional.
    ‘priority’ => ‘low’,
    // Auto save: true, false (default). Optional.
    ‘autosave’ => true,
    // List of meta fields
    ‘fields’ => array(
    // Tab 1
    array(

    ‘name’ => __( ‘Katalog View Description’, ‘meta-box’ ),
    ‘id’ => $prefix.’katalog_view_desc’,
    ‘desc’ => __( ”, ‘meta-box’ ),
    ‘type’ => ‘textarea’,
    ‘clone’ => false,

    ),
    array(

    ‘name’ => __( ‘Views’, ‘meta-box’ ),
    ‘id’ => $prefix.’views’,
    ‘type’ => ‘image_advanced’,
    ‘max_file_uploads’ => 16,

    ),

    ),
    );

    return $meta_boxes;
    }

    Thread Starter vermashu123

    (@vermashu123)

    Hello Tran

    Here is video record of error
    http://screencast.com/t/x8g45SVR

    Plugin Contributor Manny Fleurmond

    (@funkatronic)

    I can’t replicate the bug using your code. After you save, can you do a screen cap of the JavaScript console(Ctrl + Shift + J in Windows, Command + Option + J on Mac)? I’m trying to see if there are any JavaScript errors. Also what plugins do you have installed?

    Thread Starter vermashu123

    (@vermashu123)

    Hello Manny

    here is console screen i captured.
    http://www.katalog.com/wp-content/uploads/2016/03/console-after-save.jpg

    Plugin Contributor Manny Fleurmond

    (@funkatronic)

    Wierd. I don’t know why it’s not saving. What other plugins are you using?

    Thread Starter vermashu123

    (@vermashu123)

    Thread Starter vermashu123

    (@vermashu123)

    Hi Manny

    Can you please help me?

    Thread Starter vermashu123

    (@vermashu123)

    Is there anybody who can help us?

    Plugin Contributor Manny Fleurmond

    (@funkatronic)

    What version of WordPress are you using? There was a bug with the 4.5 beta that should have been solved with the most recent version of the plugin on github: https://github.com/rilwis/meta-box

    If that doesn’t work, disable all other plugins and try it again, adding 1 plugin at a time to see if any of them are causing the issue.

    Hi Please Help f
    Image is not visible image on front end after update multiple image
    but it is display on admin side
    when click on update at admin then all image are visible at front end
    update code:
    update_post_meta($post_id,’gallery_imgadv’,$attachement_id);

    Display code code:
    <?php
    $images = rwmb_meta( ‘gallery_imgadv’, ‘size=YOURSIZE’ );
    if ( !empty( $images ) )
    {
    foreach ( $images as $image )
    {
    ?>
    <?php echo ““;?> <?php
    }
    }
    ?>

    • This reply was modified 7 years, 4 months ago by technource.

    <?php
    $images = rwmb_meta( ‘gallery_imgadv’, ‘size=YOURSIZE’ );
    if ( !empty( $images ) )
    {
    foreach ( $images as $image )
    {
    ?>
    <?php echo ““;?>
    }
    }
    ?>

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Image Advanced Not Working after Update’ is closed to new replies.