Title: &#039;excerpt_length&#039; doesn&#039;t work for some posts
Last modified: August 21, 2016

---

# 'excerpt_length' doesn't work for some posts

 *  [paragate](https://wordpress.org/support/users/jyk1616/)
 * (@jyk1616)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/excerpt_length-doesnt-work-for-some-posts/)
 * Hi,
 * I’m working on [funnypaper.us](http://www.funnypaper.us) to include recent posts
   from [facebook.com/makefunnypaper](http://www.facebook.com/makefunnypaper)
 * I added following code at footer.php,
    <?php recent_facebook_posts(array(‘excerpt_length’
   =>300, ‘likes’ => 0, ‘comments’ => 0, ‘number’ =>6 ,’show_link_previews’=>1));?
   >
 * [the latest post](https://www.facebook.com/165872523436950/posts/714197491937781)
   does not get truncated while other posts look well excerpted.
    Any suggestions?
   Thanks.
 * [https://wordpress.org/plugins/recent-facebook-posts/](https://wordpress.org/plugins/recent-facebook-posts/)

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

 *  [john0321](https://wordpress.org/support/users/john0321/)
 * (@john0321)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/excerpt_length-doesnt-work-for-some-posts/#post-4599976)
 * Hi Jyk, hi Danny,
 * I post here because I’ve got more or less the same problem (on a local WordPress
   installation). The only difference is that for me truncation doesn’t work at 
   all (along with two other problems detailed below – everything else looks fine).
 * I added RFP function to my theme’s index.php this way:
 *     ```
       <?php recent_facebook_posts(array(					"likes" => "1",
       "comments" => "1",
       "excerpt_length" => "50",
       "number" => "13",
       "show_page_link" => "0", 										"el" => "div",
       "show_link_previews" => "1"));
       ?>
       ```
   
 * Whatever the excerpt paramater I give, it returns the same.
    That is to say generally
   the full Facebook excerpt. And when that very one is itself truncated (on the
   [Facebook page](https://fr-fr.facebook.com/pages/LL-Partner/323280934429340)),
   then on WordPress it gets displayed the same PLUS a few more characters (never
   the same amount out of my 13 posts test – it seems random).
 * Additionally (I’m not sure whether it is related or not), on the plugin’s admin
   page, whatever Image size and Image dimension paramaters I choose, the same got
   displayed – a small image with a specified width of 114px and unspecified height.
 * Last, on the Facebook page, the post dating back from Feb 10th (or [this link](http://www.bfmtv.com/video/bfmbusiness/good-morning-business/darty-le-meilleur-prix-meilleur-choix-meilleur-service-regis-schultz-gmb-07-02-175414/)
   previewed in Facebook) is given no preview on WordPress (only appears the comments/
   like/time/link line).
 * I’d be very interested with any suggestions!
 *  [AirFlame](https://wordpress.org/support/users/airflame/)
 * (@airflame)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/excerpt_length-doesnt-work-for-some-posts/#post-4599990)
 * Same here:
 * ‘excerpt_length => 1000’
    “excerpt_length => 1000” “excerpt_length” => “1000”‘
   excerpt_length’ => ‘1000’ ‘excerpt_length’ => 1000
 * Not working with the php file
 *  Plugin Author [Danny van Kooten](https://wordpress.org/support/users/dvankooten/)
 * (@dvankooten)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/excerpt_length-doesnt-work-for-some-posts/#post-4599991)
 * Hi guys,
 * Hmm, that’s really strange. Thanks for confirming all, will take a look tomorrow!(
   It’s running a little late here, Europe)
 *  [AirFlame](https://wordpress.org/support/users/airflame/)
 * (@airflame)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/excerpt_length-doesnt-work-for-some-posts/#post-4600055)
 * any luck fixing it ? Btw it seems that number = 5 in php not working too.
 *  [bartcz](https://wordpress.org/support/users/bartcz/)
 * (@bartcz)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/excerpt_length-doesnt-work-for-some-posts/#post-4600153)
 * recent-facebook-posts/includes/class-public.php –> line 162–169
 * I changed it there and it worked.

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

The topic ‘'excerpt_length' doesn't work for some posts’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/recent-facebook-posts_eae9f9.svg)
 * [Recent FB Posts](https://wordpress.org/plugins/recent-facebook-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/recent-facebook-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/recent-facebook-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/recent-facebook-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/recent-facebook-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/recent-facebook-posts/reviews/)

## Tags

 * [excerpt](https://wordpress.org/support/topic-tag/excerpt/)
 * [japanese](https://wordpress.org/support/topic-tag/japanese/)
 * [language](https://wordpress.org/support/topic-tag/language/)

 * 5 replies
 * 5 participants
 * Last reply from: [bartcz](https://wordpress.org/support/users/bartcz/)
 * Last activity: [12 years, 2 months ago](https://wordpress.org/support/topic/excerpt_length-doesnt-work-for-some-posts/#post-4600153)
 * Status: not resolved