WYSIWYG Character Limit for ACF

Description

WYSIWYG Character Limit for ACF allows you to set a maximum character limit for ACF WYSIWYG fields. The plugin provides:

Global Character Limit – Set a site-wide limit for all WYSIWYG fields.
Per-Field Limits – Override global limits with custom values inside ACF field settings.
Live Character Counter – Displays real-time character count below the editor.
TinyMCE & Text Mode Support – Works in both visual (TinyMCE) and text (HTML) mode.
Validation & Warnings – Prevents saving content that exceeds the limit.

💡 Ideal for websites needing strict content limits, like news sites, SEO-focused blogs, and structured content formats.

License

This plugin is released under the GPL v2 or later. You are free to modify and distribute it.

Screenshots

  • Global Settings – Set a global character limit in plugin settings.
  • Field Settings – Define custom character limits inside ACF field options.
  • WYSIWYG Editor Counter – Displays real-time character count under the editor.
  • Exceeded Limit Warning – Counter turns red when the limit is exceeded.

Installation

  1. Upload the plugin folder to /wp-content/plugins/wysiwyg-character-limit-for-acf/
  2. Activate the plugin via the Plugins menu in WordPress.
  3. Go to Settings > ACF WYSIWYG Limit to set a global limit (optional).
  4. To apply per-field limits, edit any ACF WYSIWYG field and set a Character Limit value.

FAQ

Does this work with ACF Pro?

Yes, the plugin is fully compatible with ACF Free & ACF Pro.

Does this work with Flexible Content and Repeater fields?

Yes, you can apply character limits inside Repeater, Flexible Content, and Group fields.

Can I use this for Word Count instead?

Currently, the plugin only supports character count. A future update may add word count support.

Reviews

May 28, 2025 1 reply
Simple and well done, it perfectly fit several scenarios. For future improvements: enqueue the script on frontend to support front-end editing, add text customisation for error message, migrate to vanilla js.
Read all 1 reviews

Contributors & Developers

“WYSIWYG Character Limit for ACF” is open source software. The following people have contributed to this plugin.

Contributors

“WYSIWYG Character Limit for ACF” has been translated into 1 locale. Thank you to the translators for their contributions.

Translate “WYSIWYG Character Limit for ACF” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Change log

2.0.1

  • Fixed character counting in nested fields
  • Improved performance for large content
  • Added support for custom TinyMCE configurations

2.0

  • Added support for WordPress 6.8
  • Improved character counting accuracy
  • Enhanced validation messages
  • Fixed compatibility issues with ACF Pro 6.0+

1.0.0

  • Initial release
  • Global and per-field character limits
  • Live character counter below WYSIWYG editor
  • Works in both TinyMCE and Text Mode