WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 3 years ago

#32266 closed enhancement (wontfix)

Add Excerpt to Export

Reported by: arjunskumar Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.3
Component: Export Keywords: has-patch
Focuses: Cc:

Description

Noticed that if there isn't any manual excerpts for posts, there's no excerpt in the exported file.
This little enhancement will check if there's already an excerpt available for the post, and if not, strips the first 55 char from the content.

Attachments (1)

#32266.patch (862 bytes) - added by arjunskumar 4 years ago.

Download all attachments as: .zip

Change History (5)

@arjunskumar
4 years ago

#1 @arjunskumar
4 years ago

  • Keywords has-patch added

#2 @SergeyBiryukov
4 years ago

  • Focuses accessibility removed

Hi @arjunskumar, welcome to Trac!

If there are no excerpts in the current database (they are auto-generated), why should they be in the export file?

#3 @arjunskumar
4 years ago

@SergeyBiryukov

In case of re-using the export file for a new WordPress installation, we can use the_excerpt in theme, but then, for other platforms, the excerpt can be used as summary.

Recently I had to face the same issue while I had to import some 800+ blog posts to a HubSpot blog.

This could be nice little feature that could be save some good amount of time when people try to migrate to a different platform.

#4 @swissspidy
3 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed

I get the argument re: external platforms, but this will lead to inconsistent data when importing on another WordPress site. The new site would suddenly have posts with excerpts, whereas the old site doesn't have those. Export again and import on the old site and it gets even more messed up.

Long story short, I suggest using the the_excerpt_export filter for your use case. That's exactly what these filters are for. Closing as wontfix, especially since there was no movement on this ticket in over a year.

Note: See TracTickets for help on using tickets.