Simple Facebook Connect
How to limit the number of characters in the post snippet (3 posts)

  1. formyboyfriend
    Posted 4 years ago #


    I was just wondering if there was an easy way to limit the number of characters that appear in the post snippet. My posts tend to be quite short and at the moment the whole thing is appearing on fp I'd like to limit this to around 50 characters. Is this possible (with my limited programming experience)


  2. formyboyfriend
    Posted 4 years ago #

    oops, clearly that should have said fb not fp :p

  3. Samuel Wood (Otto)
    WordPress.org Tech Dude
    Plugin Author

    Posted 4 years ago #

    The sfc_excerpt_length filter will let you control the number of characters it will read in order to produce the published text. It defaults to FB's maximum, which is 1000 characters.

    function my_length($num) {
      return 50;

    Put that in your theme's functions.php file or in a plugin or something.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic