Title: Excerpt bug?
Last modified: September 30, 2019

---

# Excerpt bug?

 *  Resolved [StudentIngegneria](https://wordpress.org/support/users/commissioneweb/)
 * (@commissioneweb)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/excerpt-bug-2/)
 * We exported the content of our site and imported it on WordPress on a VM to work
   on a copy of the site. When creating a slider for recent posts, their excerpt(
   created through Advanced Excerpt,posts do not have a manually set excerpt) is
   not shown, even if explicitly configured to do so. Only post titles and categories
   appear in the slider. The excerpt is working because is shown if Blog Post Page
   is created.
 * The strange thing is that this does not happen if Advanced Excerpt and your plugin
   are installed in sites with pre-existent posts or with new sites. In these case
   they work as expected and slider with posts’ title, categories and excerpt are
   shown.
 * [Also asked in Advanced Excerpt support](https://wordpress.org/support/topic/excerpt-bug-3/)
    -  This topic was modified 6 years, 8 months ago by [StudentIngegneria](https://wordpress.org/support/users/commissioneweb/).

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

 *  [Rafik](https://wordpress.org/support/users/rafikwp/)
 * (@rafikwp)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/excerpt-bug-2/#post-11988433)
 * Hello,
 * Did you mean excerpt not working after you have moved the site to another server
   right?
    It works in the new site if you activate both the plugin right? Our plugin
   is a simple way working if you add an excerpt then it will show an excerpt but
   if you have not added an excerpt then it will display content with the word limit.
   We have not more ideas about “Advanced Excerpt” plugin what kind of filter they
   have used to display the excerpt.
 * Thanks
 *  Thread Starter [StudentIngegneria](https://wordpress.org/support/users/commissioneweb/)
 * (@commissioneweb)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/excerpt-bug-2/#post-11990862)
 * Yes, it does not work only after moving the site through [WordPress export](https://wordpress.org/support/article/tools-export-screen/)(
   we used the “All content” option).
 * It works when creating a totally new site (not importing the old content). If
   we create a new website (with both the plugin installed) and write some posts
   then the excerpt is shown in the slider.
 *  [Rafik](https://wordpress.org/support/users/rafikwp/)
 * (@rafikwp)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/excerpt-bug-2/#post-11992120)
 * Hello,
 * This is not our plugin issue, Its look like import and export are not done the
   proper way.
 * Thanks
 *  [WPKube](https://wordpress.org/support/users/wpkube/)
 * (@wpkube)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/excerpt-bug-2/#post-11998617)
 * Hi,
 * I’m the developer of Advanced Excerpt.
 * The user does not have specific excerpts set, they are generated from the main
   content.
 * So in the design-1.php, design-2.php… files of your plugin the code that’s triggered
   is:
 *     ```
       $excerpt = strip_shortcodes(strip_tags(get_the_content())); ?>
       <div class="wp-sub-content"><?php echo wprps_limit_words($excerpt,$words_limit); ?></div>
       ```
   
 * Setting aside the shortcodes and HTML tags being stripped (not sure the user 
   would need them in this scenario), the issue is get_the_content().
 * WordPress has no filters on get_the_content() so we’re unable to hook in there
   and alter the output.
 * Any chance you could put a filter in there, in the wprps_limit_words function?
 * Basically instead of:
 * `return $content;`
 * It would be:
 * `return apply_filters( 'wppsac_excerpt', $content );`
 * That way our plugin (and other plugins if needed) can hook into your output of
   excerpt and modify it.

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

The topic ‘Excerpt bug?’ 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
 * 3 participants
 * Last reply from: [WPKube](https://wordpress.org/support/users/wpkube/)
 * Last activity: [6 years, 8 months ago](https://wordpress.org/support/topic/excerpt-bug-2/#post-11998617)
 * Status: resolved