Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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?

Thanks

share|improve this question
add comment

3 Answers 3

up vote 2 down vote accepted

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

<textarea maxlength="140">

</textarea>
share|improve this answer
add comment

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
1  
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
add comment

Your Answer

 
discard

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.