Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Emil1

    (@milouze)

    OMG what is this fucking update nothing work all previous meta don’t work !

    Plugin Author Anh Tran

    (@rilwis)

    Can you please check with the instructions here https://metabox.io/steps-fix-problems-meta-box-4-8-0/?

    Thread Starter Emil1

    (@milouze)

    Hello

    Oh yes !!! Thank you is that the old admin init.

    Thank you Thank you ! is work fine.

    PS : Sorry for bad reaction

    Thread Starter Emil1

    (@milouze)

    resolved

    boutzamat

    (@boutzamat)

    I never used Admin_init to register the metaboxes.. still it stopped working for me.. i followed the instructions, but no luck so far..

    add_filter( 'rwmb_meta_boxes', 'rw_register_meta_boxes' );
    
    function rw_register_meta_boxes( $meta_boxes ){
    
        $prefix = 'rw_';
    
    	//THE VARIANTER IMAGES
        $meta_boxes[] = array(
            'title'    => 'Varianter',
            'pages'    => array( 'product'),
            'fields' => array(
                array(
                    'name' => 'Varianter',
                    'id'   => $prefix . 'variant',
                    'type' => 'file_advanced',
                ),
            )
        );
    
    	//THE MANUFACTURER INFO
    
        $meta_boxes[] = array(
            'title'    => 'Inspiration egenskaber',
            'pages'    => array( 'inspiration'),
            'fields' => array(
                array(
                    'name' => 'Inspirations billeder',
                    'id'   => $prefix . 'inspirationbilleder',
                    'type' => 'file_advanced',
                ),
            )
        );
    
        return $meta_boxes;
    }

    And my code in the template:

    <?php if (rwmb_meta( 'rw_variant' ) !== '') { ?>
    
    	<label>Udvalg af farver og varianter</label>
    	<div class="flexslider varianter">
    		<ul class="slides">
    			<?php 
    
    				$images = rwmb_meta( 'rw_variant', 'type=image&size=thumbnail' );
    				foreach ( $images as $image )
    				{
    					echo "<li><a href='{$image['full_url']}' title='{$image['title']}' target='_blank' class='zoom' data-rel='prettyPhoto[product-gallery1]'><img src='{$image['url']}' width='{$image['width']}' height='{$image['height']}' alt='{$image['alt']}' /></a></li>";
    				}
    			?>
    		</ul>
    	</div>
    	<script>
    	jQuery(window).load(function() {
    	  jQuery('.flexslider.varianter').flexslider({
    		animation: "slide",
    		animationLoop: true,
    		itemWidth: 80,
    		itemMargin: 50,
    		minItems: 1,
    		maxItems: 5,
    		directionNav: true
    	  });
    	});
    	</script>
    
    <?php } ?>

    No luck…

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘FullURL’ is closed to new replies.