Forum Replies Created

Viewing 15 replies - 1 through 15 (of 27 total)
  • Forum: Plugins
    In reply to: [CMB2] Show group
    Thread Starter seravifer

    (@seravifer)

    Ok, thank you so much.

    Forum: Plugins
    In reply to: [CMB2] Show group
    Thread Starter seravifer

    (@seravifer)

    No, it’s the same.

    Forum: Plugins
    In reply to: [CMB2] Show group
    Thread Starter seravifer

    (@seravifer)

    oh, sorry, yes.
    When i choose 13/08/15, is not saved.

    Forum: Plugins
    In reply to: [CMB2] Show group
    Thread Starter seravifer

    (@seravifer)

    I found the error. Only it appears if you use “dd / mm / yy”. The error occurs when you choose dates where the day is over 12.
    Example:
    6/10/15 choose, beware.
    8/13/15 choose, is not saved.

    Forum: Plugins
    In reply to: [CMB2] Show group
    Thread Starter seravifer

    (@seravifer)

    I’ve been testing and I have not discovered the error. Finally I decided to use jQuery Datapicker. Its works.

    Forum: Plugins
    In reply to: [CMB2] Show group
    Thread Starter seravifer

    (@seravifer)

    If you use the option to repeat, it returns the error. And if you do not use, it is saved when he wants.

    I tried on another website and still going the same, with a new theme.

    Want to make a video demo? With mail…

    Forum: Plugins
    In reply to: [CMB2] Show group
    Thread Starter seravifer

    (@seravifer)

    With 2.1.2

    Notice: Array to string conversion in \wordpress\wp-content\plugins\cmb2\includes\CMB2_Utils.php on line 152
    
    Notice: Array to string conversion in \wordpress\wp-content\plugins\cmb2\includes\CMB2_Utils.php on line 141

    Forum: Plugins
    In reply to: [CMB2] Show group
    Thread Starter seravifer

    (@seravifer)

    No, I have version 2.1.0. It appears above the METABOX. A date appears when you save, if not to date shown no error.

    Forum: Plugins
    In reply to: [CMB2] Show group
    Thread Starter seravifer

    (@seravifer)

    require_once dirname( __FILE__ ) . '/metabox/init.php';
    
    add_action( 'cmb2_init', 'factura' );
    function factura() {
    	$prefix = 'gg_';
    
    	$cmb_group = new_cmb2_box( array(
    		'id'           => $prefix . 'factura',
    		'title'        => __( 'Servicios' ),
    		'object_types' => array( 'factura' )
    	) );
    
    	$group_field_id = $cmb_group->add_field( array(
    		'id'          => $prefix . 'demo',
    		'type'        => 'group',
    		'options'     => array(
    			'group_title'   => __( 'Elemento {#}' ),
    			'add_button'    => __( 'Añadir elemento' ),
    			'remove_button' => __( 'Eliminar elemnto' ),
    			'sortable'      => true
    		)
    	) );
    
    	$cmb_group->add_group_field( $group_field_id, array(
    		'name'       => __( 'Descripción' ),
    		'id'         => $prefix . 'titulo',
    		'type'       => 'text'
    	) );
    	$cmb_group->add_group_field( $group_field_id, array(
    		'name' => __( 'Fecha' ),
    		'id'   => $prefix . 'textdate',
    		'type' => 'text_date_timestamp',
            'repeatable' => true
    	) );
    	$cmb_group->add_group_field( $group_field_id, array(
    		'name' => __( 'Precio' ),
    		'id'   => $prefix . 'textmoney',
    		'type' => 'text_money',
    		'after_field' => '€',
    		'before_field' => ' ',
    	) );
    }
    Forum: Plugins
    In reply to: [CMB2] Show group
    Thread Starter seravifer

    (@seravifer)

    You were right, thanks.
    A further problem. When I selected a date returns this error:

    Notice: Array to string conversion in \wordpress\wp-content\themes\theme\metabox\includes\CMB2_Utils.php on line 131
    
    Notice: Array to string conversion in \wordpress\wp-content\themes\theme\metabox\includes\CMB2_Utils.php on line 120

    But when I remove the option: 'repeatable' => true simply is not saved.

    Thread Starter seravifer

    (@seravifer)

    Does anyone know why is it?

    Thread Starter seravifer

    (@seravifer)

    yes

    Thread Starter seravifer

    (@seravifer)

    Thread Starter seravifer

    (@seravifer)

    The wp-config.php file is correct. I downloaded again even.

    Thread Starter seravifer

    (@seravifer)

    I tested my theme in another WordPress installation and no errors. The only thing is that the post_type shows “Error 404” when I see them.

Viewing 15 replies - 1 through 15 (of 27 total)