File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ public function scripts() {
5252 } // end public function scripts
5353
5454 public function render_field ($ field ) {
55+ //echo '<pre>'; print_r($field); echo '</pre>';
5556 if (!$ this ->run () ||
5657 !$ field ['maxlength ' ] ||
5758 ($ field ['type ' ] != 'text ' && $ field ['type ' ] != 'textarea ' )) {
@@ -60,15 +61,12 @@ public function render_field($field) {
6061 }
6162 $ len = strlen ($ field ['value ' ]);
6263 $ max = $ field ['maxlength ' ];
63-
64- if ( $ field ['wrapper ' ]['class ' ] == 'acf_counter ' ) {
6564 ?>
6665 <span class="char-count">
6766 <?php echo __ ('Characters ' , 'dvp ' ); ?> : <span class="count"><?php echo $ len ; ?> </span>
6867 <?php echo __ ('of ' , 'dvp ' ); ?> <?php echo $ max ; ?>
6968 </span>
7069 <?php
71- }
7270 } // end public function render_field
7371
7472 } // end class acf_input_counter
You can’t perform that action at this time.
0 commit comments