5

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

2

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

<textarea maxlength="140">

</textarea>
0

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

  • 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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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