Title: Tricky excerpt from posts beginning by a shortcode
Last modified: October 8, 2017

---

# Tricky excerpt from posts beginning by a shortcode

 *  Resolved [ciroiodice](https://wordpress.org/support/users/ciroiodice/)
 * (@ciroiodice)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/tricky-excerpt-from-posts-beginning-by-a-shortcode/)
 * Hello.
    I’m a satisfied, yet minimal, user of your five stars plugin. A little
   problem – that I solved tweaking template 3 PHP code – comes out when a recent
   or more posts start with a shortcome (like mines do). Abstract or snippet text
   includes an uninterpreted snipped code (e.g. [something data=””], resulting in
   a tricky output.
 * I changed a couple of lines in template-3.php (I use design-3) as follows:
    Line
   37: $customExcerpt = strip_shortcodes(strip_tags(get_the_excerpt())); Line 43:
   $excerpt = strip_shortcodes(strip_tags(get_the_content()));
 * Could be useful to include above changes in incoming releases of your nice plugin?
 * Thanks a lot for reading my considerations.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ftricky-excerpt-from-posts-beginning-by-a-shortcode%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [wponlinesupport](https://wordpress.org/support/users/wponlinesupport/)
 * (@wponlinesupport)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/tricky-excerpt-from-posts-beginning-by-a-shortcode/#post-9568221)
 * Hello,
 * Thanks for your feedback 🙂
 * As we have condition in the plugin that check
    “has_excerpt” `$customExcerpt 
   = get_the_excerpt();`
 *  if not then go for WordPress editor content where you can set your own custom
   limit. This some time display some shortcode if you are using some page-builder
   OR HTML tags thats we have used
    `$excerpt = strip_tags(get_the_content());`
 *  [wponlinesupport](https://wordpress.org/support/users/wponlinesupport/)
 * (@wponlinesupport)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/tricky-excerpt-from-posts-beginning-by-a-shortcode/#post-9568223)
 * We will take care and add update our plugin as per your guideline 🙂
 *  [wponlinesupport](https://wordpress.org/support/users/wponlinesupport/)
 * (@wponlinesupport)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/tricky-excerpt-from-posts-beginning-by-a-shortcode/#post-9568231)
 * Hello,
 * We have updated the plugin to the latest version 1.3.3
 *  [wponlinesupport](https://wordpress.org/support/users/wponlinesupport/)
 * (@wponlinesupport)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/tricky-excerpt-from-posts-beginning-by-a-shortcode/#post-9572189)
 * Hello,
 * PLease share your rating and review if we have fixed your issue and you are happy
   with our plugin and support 🙂

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

The topic ‘Tricky excerpt from posts beginning by a shortcode’ is closed to new 
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-responsive-recent-post-slider_9c9a9b.
   svg)
 * [WP Responsive Recent Post Slider/Carousel](https://wordpress.org/plugins/wp-responsive-recent-post-slider/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-responsive-recent-post-slider/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-responsive-recent-post-slider/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-responsive-recent-post-slider/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-responsive-recent-post-slider/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [wponlinesupport](https://wordpress.org/support/users/wponlinesupport/)
 * Last activity: [8 years, 8 months ago](https://wordpress.org/support/topic/tricky-excerpt-from-posts-beginning-by-a-shortcode/#post-9572189)
 * Status: resolved