WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to limit characters in BuddyPress posts to certain limit . Ex: Set it to the limit of 150 ... just like twitter's 140.

Googled about it and found nothing. Does any one have Idea on this?


share|improve this question
up vote 2 down vote accepted

Simple solution is to add a maxlength attribute to the textarea field. For example

<textarea maxlength="140">

share|improve this answer

This question was answered 3 years ago on wordpress.org. Here is the function, which you can easily modify to your needs.

share|improve this answer
Hi ommunist, welcome to WPSE. Can you provide the code in your answer? Answers with just a link are considered poor quality, and become useless should the link ever die. Thanks! – Stephen Harris Sep 27 '12 at 9:51

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.