Text Limiter extension not working

Support MB Text Limiter Text Limiter extension not working

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #47761
    Marcus PottsMarcus Potts
    Participant

    Hi

    I am using AIO v2.0.2 an have various extensions activated, including Text Limiter. This works on the first field that has the parameter, but all subsequent instances don't work. Example below, only the _short_description field is limited.

    function cta_product_fields( $meta_boxes ) {
    	$prefix = '_';
    
    	$meta_boxes[] = [
    		'id'         => 'cta_product_fields',
    		'title'      => esc_html__( 'Product Call-to-Action Fields', 'my-plugin' ),
    		'post_types' => [ 'sw_product' ],
    		'context'    => 'normal',
    		'priority'   => 'high',
    		'autosave'   => true,
    		'fields'     => [
    			[
    				'id'   => $prefix . 'short_description',
    				'name' => esc_html__( 'Short Description', 'my-plugin' ),
    				'type' => 'textarea',
    				'limit' => 128,
    			],
    			[
    				'id'   => $prefix . 'product_availability',
    				'name' => esc_html__( 'Availablity', 'my-plugin' ),
    				'type' => 'text',
    				'limit' => 24,
    			],
    			
    		],
    	];
    
    	return $meta_boxes;
    }
    add_filter( 'rwmb_meta_boxes', 'cta_product_fields' );

    I have disabled all other plugins, checked the logs and console but can't track the issue. Any help or suggestions you can give would be great.

    Thanks
    Marcus

    #47763
    PeterPeter
    Moderator

    Hello Marcus,

    Thank you for reaching out and for your feedback.

    There is an issue with the text limiter extension, it only works with the first field on a page. I've escalated this issue to the development team to fix it soon.

    #47769
    Touchdown TechTouchdown Tech
    Participant

    I was coming in to post about this issue too. Glad it's not isolated to my website. Hopefully will get it working soon.

    #47827
    Touchdown TechTouchdown Tech
    Participant

    I'm a little surprised this isn't resolved yet. Any ETA?

    #47835
    jw_blnjw_bln
    Participant

    Can confirm this too, at least for the admin area (seems, on the frontend it is working).

    Text limit 100 characters is set in field group.
    "Character Count: 50/100" is shown on a text fields.
    BUT not on textarea fields.
    So, more text is entered as allowed...
    Will this be fixed?

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.