One approach is to use JavaScript to add the maxlength
attribute to the term description field:
function wpse_term_description_attributes() { ?>
<script type="text/javascript">
jQuery(document).ready(function($) {
$( '.taxonomy-custom_taxonomy_name #description, .taxonomy-custom_taxonomy_name #tag-description' ).attr( 'maxlength', '20' );
});
</script><?php
}
add_action( 'admin_head', 'wpse_term_description_attributes' );
Replace custom_taxonomy_name
with the name of your taxonomy, and customize the value assigned to the maxlength
attribute as needed.
Related Posts:
- Custom Taxonomy Only Showing Top Level Terms in Admin?
- How to link categories to custom taxonomy terms?
- Removing the “Popular Terms” area from the Taxonomy Edit Screen in the Admin Area
- Modify “View” in admin panel for custom taxonomy
- Dropdown taxonomy lists in admin menu
- How to use taxonomies on attachments with the new Media Library?
- Contact Form 7 – Populate Select List With Taxonomy [closed]
- Why is my working Custom Taxonomy not in get_taxonomies array?
- Custom order of terms for custom taxonomy in admin and website
- Hook to process a new taxonomy tag before it is created?
- Custom taxonomy on permalink
- How do I filter posts by taxomony using AJAX
- Multiple users – only allow them to manage their own terms for custom taxonomy when logged in
- How to return a list of custom taxonomy terms via the Gutenberg getEntityRecords method
- Create taxonomy with meta term using the WP Rest Api
- Get current term’s ID
- Is it possible to get a Previous/Next Taxonomy term archive URL?
- Taxonomies not appearing in columns on dashboard
- How to modify default taxonomy field to a single text field?
- How to set hierarchical terms to a post using wp_set_object_terms
- Echo taxonomy term meta on author.php
- Hierarchical display of custom taxonomy
- How do I display a tag cloud with both post tags AND a custom taxonomy?
- How to output the taxonomy term name in a widget
- List taxonomy / category count showing list published posts only
- Save Filter for Taxonomies
- Create Child Taxonomies
- Is It Possible To Have Shared WordPress Custom Post Types?
- WordPress renames slug of tags used in multiple taxonomies?
- Allow only 1 instance of each term in each custom taxonomy
- get_terms: determine if taxonomy term has children
- Set a taxonomy as private
- “show option all” on list categories doesn’t display taxonomy
- meta_key & meta_value not working with get_pages and custom taxonomy
- How can I add buttons to a custom column in the taxonomy table?
- display taxonomy slug from term ID
- wp_insert_post not updating custom taxonomy selected if logged in as a subscriber
- Redirect all child taxonomy to its parent
- Wrapping result of the_terms in a span with a class of the term name
- Taxonomy template shows only 10 posts
- Taxonomies image
- What is faster: custom taxonomy or serialized post-meta for db retrieval? (over 60,000 posts)
- Get taxonomy based on another taxonomy slug
- Extend & Search Native WordPress Image Galleries With Tags and Taxonomies?
- Custom Taxonomy index/archive hierarchy
- Filter custom taxonomy archive posts by 2nd custom taxonomy using select dropdown
- How to show all post related taxonomies
- Getting associated taxonomies
- WordPress implode & wp_insert_post question
- Get the taxonomy of the post
- how can i display taxonomy instead of category on my web page?
- Taxonomy Meta Box in User Profile?
- How Parent Taxonomy automatically added to the post when using `wp_set_object_terms()`?
- Proper way to update the slug of a taxonomy using register_taxonomy? [duplicate]
- Get object for a few selected taxonomies
- Get only immediate children (and not grandchildren) of a hierarchical custom taxonomy term
- How to group all terms children’s in custom taxonomy?
- Corrupted nav-menu?
- Remove taxonomy widget from “PAGE” post
- Loop through custom taxanomy in post and display custom fields from posts
- query_posts that have custom taxonomy and limiting what shows based on the taxonomy
- Register `product_cat` taxonomy for default post post type
- Custom Taxonomy Not Saving in Front End Post
- Taxonomize taxonomy terms?
- Set two terms for a post when they differ only by an accent
- Rewrite Search URL Permalink For CPT Custom Taxonomies
- display taxonomy terms with link
- Listing Cities A custom taxonmy by selection order
- Template taxonomy-{taxonomy}.php doesn’t show my posts
- Can I get thumbnail of taxonomy?
- Unregistered taxonomy apears still as emtpy filter list
- Get Highest and Lowest get_term_meta() value from Taxonomy Term
- Custom Taxonomy Not Being Recognized by is_tax()
- Ignore punctuation marks in taxonomy order by name
- What’s the url queryvar for a taxnomy archive?
- set_object_terms for custom taxonomy in custom post type – not working
- Get all users attached to a taxonomy
- Templates files for custom post type with custom tags
- Display taxonomy posts
- Creating a Taxonomy Page [duplicate]
- Add image to taxonomy and output to homepage
- Child Pages and Custom Taxonomies
- Remove taxonomy menu without removing the metabox?
- How to perform a search inside a specific taxonomy category
- Sorting Custom Taxonomy in ASC/DESC order?
- How can i set post_per_page in my taxonamy?
- Exclude 2 in 3 terms of A Taxonomy from all Archives
- Custom taxonomy auto suggest not working in wordpress admin
- Select default taxonomy on dropdown
- WordPress Taxonomy Menu
- Loop custom post type by taxonomy (Category)
- query posts returns 10 records
- get_terms() – unexpected ‘=>’ (T_DOUBLE_ARROW) error
- get_term_children specific no id
- Custom Search only for my Custom Taxonomy Page – data
- How to add/enqueue Custom CSS for a custom taxonomy page?
- Make custom post type display with custom taxonomy in url
- How do I create a term for every value of a post meta?
- Save selected terms in order of custom taxonomy in post
- Taxonomy entries are spawning copies of existing entries with the new title as the existing ID, since upgrade