• Hello,
    After a recent update the metabox that I set up to control visibility on some ecommerce pages has quit updating on existing posts.

    I use to be able to click through the radio inputs and have the data stick, now if I try to change radio input it will revert back to the default when the page is saved/ updated.

    Currently I am having the client delete the metadata on the page and re-click the desired input.

    I set it up a while back using the code from the demo, what am I missing or need to change to fix this?

    Thanks in Advance

    add_filter( 'rwmb_meta_boxes', 'xxx_register_meta_boxes' );
        function xxx_register_meta_boxes( $meta_boxes ) {
        		$prefix = 'xxx_';
            $meta_boxes[] = array(
            		'id' => 'standard',
                'title'      => __( 'Pricing Visability', 'rwmb'  ),
                'pages' => array( 'post', 'page','wpsc-product' ),
                'context' => 'side',
                'priority' => 'high',
                'fields'     => array(
                    array(
    					'name'    => __( '', 'rwmb' ),
    					'id'      => "{$prefix}radio",
    					'type'    => 'radio',
    					'options' => array(
    						'1' => __( 'Show Price', 'rwmb' ),
    						'2' => __( 'Out of Stock', 'rwmb'),
    						'3' => __( 'Call for Info', 'rwmb' ),
    					),
    				),
                ),
            );
            return $meta_boxes;

    https://www.ads-software.com/plugins/meta-box/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Radio inputs revert to default after save’ is closed to new replies.