SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Mar 2010
    Posts
    37
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Is it possible to restrict the character length of a post title? (Wordpress)

    Could someone please tell me if there is a way to prevent users from creating a post title longer than x amount of characters?

  2. #2
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,580
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    You would have to write a plugin which hooks into the save_post action to reject a post with a title too long.

  3. #3
    SitePoint Enthusiast
    Join Date
    Mar 2010
    Posts
    37
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Damn, I can't do something like that!

    Plus, it would be no good just having that, it would need to come up with a message notifying the user that the title length is restricted..


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •