Title: Post Title length
Last modified: August 18, 2016

---

# Post Title length

 *  [uberwald](https://wordpress.org/support/users/uberwald/)
 * (@uberwald)
 * [21 years, 10 months ago](https://wordpress.org/support/topic/post-title-length/)
 * I’ve got a blog set up for my wife at [http://www.uberwald.com/purplesunglasses](http://www.uberwald.com/purplesunglasses)
   and I’d like to limit the number of characters that can be entered in the post
   title to about 42 characters, to prevent the words from spilling out of that 
   column and screwing up the layout in IE, and also to keep the words from being
   under the right nav in firefox. I opened the post.php (or maybe it was wp-post.
   php — it was a day or two ago) and it was all code and nothing that I could recognize.
   Any help on this would be great!

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [unoamigo](https://wordpress.org/support/users/unoamigo/)
 * (@unoamigo)
 * [21 years, 10 months ago](https://wordpress.org/support/topic/post-title-length/#post-79544)
 * 😉
    It might be easier to write your style sheet in such a way that a long title
   doesn’t break the page load. Simply editing post.php will only half work, the
   title could be edited so that it would be longer (later). You could make a plugin
   with an action to crosscheck the title length when a post is created or edited.
   If it is over x, a warning could be thrown, or the title could simply be truncated.
   [http://wiki.wordpress.org/Plugin/API](http://wiki.wordpress.org/Plugin/API) 
   For a list of hooks that can be used with actions. Both publish_post and edit_post
   exist. 😉 This help any?
 *  Thread Starter [uberwald](https://wordpress.org/support/users/uberwald/)
 * (@uberwald)
 * [21 years, 10 months ago](https://wordpress.org/support/topic/post-title-length/#post-79635)
 * since I don’t understand/code php, not really. and I’m only worried about the
   initial creation of the post, not any future editing. Where in post.php does 
   it set the allowable length for an entry to that field?
 *  [unoamigo](https://wordpress.org/support/users/unoamigo/)
 * (@unoamigo)
 * [21 years, 10 months ago](https://wordpress.org/support/topic/post-title-length/#post-79852)
 * The title length is unlimited. You could have 1,000 words in your title and it
   wouldn’t matter.
    I about have a plugin written that checks it and pops up an
   alert if the title length is too long. Well, it checks the length, but the alert
   box isn’t popping up at the moment. You would have to go back and edit the title
   to make it shorter… with what I’m doing. But hey, it’s something. As soon as 
   I figure out how to get the alert to pop up (it’s weird), I’ll post the plugin.
   Unless your happy getting an e-mail that says the post title is too long? That
   is easy. 😉

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Post Title length’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [unoamigo](https://wordpress.org/support/users/unoamigo/)
 * Last activity: [21 years, 10 months ago](https://wordpress.org/support/topic/post-title-length/#post-79852)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
