I would like to get some help in Limiting the content entered by editor or admin in the WP admin editor window by words and based on the categories as well for example when posting in political category i have a limit of 400 words, in sports 450, in entertainment 500 words etc..
Checking to length and limiting it is no problem, but as you set the category when you save the post setting different limits per category would be a bit trickier. Below are the steps you would need to take:
- checking the
- make it mandatory that a user selects a category
- seeing what cat the user chose
- setting custom category meta data containing the max length for that category
- and then only submitting if it is less and if it isn't throw an error
I haven't tested this, but it should work fine.