Title: [Plugin: TweetUpdater] Post Excerpt
Last modified: August 19, 2016

---

# [Plugin: TweetUpdater] Post Excerpt

 *  Resolved [hanimausi](https://wordpress.org/support/users/hanimausi/)
 * (@hanimausi)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-tweetupdater-post-excerpt/)
 * Hello i only can Post the link. Is it possible to post the postexcerpt in addition?
 * [http://wordpress.org/extend/plugins/tweetupdater/](http://wordpress.org/extend/plugins/tweetupdater/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [DefProc](https://wordpress.org/support/users/defproc/)
 * (@defproc)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-tweetupdater-post-excerpt/#post-2005320)
 * The current code doesn’t have to option to show an excerpt, and I hadn’t even
   considered it. Adding the basic functionality is fairly straight forward though,
   all of the placeholder string replacement is dealt with by the `tweet_updater_format_tweet()`
   function in `tweetupdater.php`.
 * Adding an extra line, something like:
 * > `$tweet = str_replace ( '#intro#', $excerpt, $tweet);`
 * at the end of that function will replace `#intro#` with the contents of `$excerpt`,
   however the excerpt will need to be generated or retrieved some how. Off the 
   top of my head, and a brief search, I’m not sure how to get a post excerpt because
   the function `the_excerpt()` will only work inside The Loop.
 * [http://codex.wordpress.org/Template_Tags/the_excerpt](http://codex.wordpress.org/Template_Tags/the_excerpt)
 * To make the excerpt placeholder a bit more robust, there should also be some 
   lengths tests introduced (in the previous 45 lines of code), because the standard
   output (55 words) is quite likely to overrun a single tweet.
 * I’ve got some updates to do to TweetUpdater over the next couple of months, but
   I don’t think I’ll be able to add an excerpt function then. However, if you are
   able to come up with a solution, I’d be happy to include it.

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: TweetUpdater] Post Excerpt’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/tweetupdater.svg)
 * [TweetUpdater](https://wordpress.org/plugins/tweetupdater/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tweetupdater/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tweetupdater/)
 * [Active Topics](https://wordpress.org/support/plugin/tweetupdater/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tweetupdater/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tweetupdater/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [DefProc](https://wordpress.org/support/users/defproc/)
 * Last activity: [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-tweetupdater-post-excerpt/#post-2005320)
 * Status: resolved