WordPress.org

Ready to get started?Download WordPress

Forums

Advanced Custom Fields
Set character limit for text field (3 posts)

  1. Gennaro Di Fiandra
    Member
    Posted 2 years ago #

    Hi, Is possible set a character limit for a text field?

    http://wordpress.org/extend/plugins/advanced-custom-fields/

  2. Taylor Baybutt
    Member
    Posted 2 years ago #

    bump

  3. Taylor Baybutt
    Member
    Posted 2 years ago #

    I figured this out and posted here: http://www.advancedcustomfields.com/support/discussion/1527/character-limit-in-text-fields#Item_5

    I highly recommend against editing the core files of the plugin so install this at your own risk. I looked at other plugins to ACF but could not find a quick way to hook into an already existing box. So I edited core files, shoot me.

    If any devs want to include this in the official plugin, be my guest. I did minimal tweaking and I commented everywhere that I did.

    Download this file http://ikon3.com/acf-character-limit.zip

    install the "acf-character-limit" plugin and activate it
    this simply puts the necessary javascript in the admin head.

    next, find the textarea.php, text.php, and meta_box_input.php files within the advanced-custom-fields plugin folder and over write them. Alternatively, you can copy where I commented and paste that into the files in the same spots.

    This uses version 3.1.5 of the ACF core files.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic