• Resolved Pete

    (@angio)


    Hi Dave,

    I’m using this version of your plugin which supports WYSIWYG Limiting. https://github.com/AtomicSmash/ACF-limiter-field/tree/wysiwyg

    This bug is when a Limited field is set, that’s the standard limiter on a textarea. When you choose Yes for the option Display character count. The count is not displayed in the progress bar.

    Only when I choose No it is displayed.

    I think the error is in limiter-4.php line 141

    if(isset($field['displayCount'])){
    			if($field['displayCount'] == 0){
    				echo('<div class="counterWrapper"><span class="limiterCount"></span> / <span class="limiterTotal">'.$field['character_number'].'</span></div>');
    			};
    		}

    Shouldn’t the second if statement be if($field['displayCount'] == 1){

    True / 1?

    https://www.ads-software.com/plugins/advanced-custom-fields-limiter-field/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Atomicsmash

    (@atomicsmash)

    Hi Pete, thanks for this! you are 100% correct! I’ll make adjustments to the WordPress and Github version ASAP.

    Thanks again!

    Thread Starter Pete

    (@angio)

    You’re welcome, if I knew how to use Git trac/svn better i’d have made the change and requested the merge.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Limiter Display character count bug’ is closed to new replies.