ACF Input Counter
Adds a counter to all text and textarea fields with character limits
by John A. Huebner II · github.com/hube2/acf-input-counter · website
★ 72stars
25forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/hube2/acf-input-counter/archive/refs/heads/master.zipDeclares an update source (https://github.com/Hube2/acf-input-counter/), so updates arrive through the plugin's own updater.
From the readme
ACF Input Counter
Supports ACF 5
Adds a counter to all text and textarea fields with character limits.
This is a simple plugin that will add a counter below all ACF text and text area fields to show how many
characters have been added and what the limit is. The display will look something like this:
This plugin will not work in ACF 4 for 2 reasons:
The acf/renderfield hook is not supported by ACF 4
The JavaScript used in this plugin is specific to ACF 5
This plugin also serves as a simple example of how to extend the functionality of fields in ACF 5.
Add Counter Filter
By defaults, the counter is added to all text and textarea fields that have a max length. If you would like
to only add the counter on specific fields you can filter them by either the ACF Wrapper Class or the ACF
Wrapper ID of the field. You can allow multiple classes or ids. If classes or ID values are present then only
fields that have one of the classes or ids will include a counter.
Filter by Class
Fields that have one of the classes or ids will include a counter.
Filter by ID
Filter the Display
To filter the display add a filter wherever you would add a filter.
In the example string above %%len%% r
Read the full README on GitHub →
Releases
| Tag | Published |
|---|---|
| 1.5.1 | Jun 5, 2022 |
| 1.4.1 | Apr 29, 2017 |
| 1.4.0 | Dec 29, 2016 |
| 1.3.1 | Oct 9, 2016 |
| 1.3.0 | Oct 9, 2016 |
| 1.2.0 | Oct 8, 2016 |
| 1.1.1 | Oct 8, 2016 |
| 1.0.0 | Oct 8, 2016 |
| 0.1.0 | Sep 27, 2016 |
| 0.0.5 | Sep 26, 2016 |
| 0.0.4 | Sep 26, 2016 |
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.