WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #46133, comment 7


Ignore:
Timestamp:
04/23/2019 10:34:35 PM (17 months ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #46133, comment 7

    initial v1  
    33Ideally we are looking for some text that is relevant to the post content. If no text is found, we can perhaps use an image. But some posts may not have either (a gallery post?). In these edge cases it would be acceptable to have an empty excerpt imho.
    44
    5 Dynamic blocks may not be appropriate for use in excerpts too. Skipping over them and trying to find an actual paragraph would probably be better.
     5Another possible way might be to look at the block content (HTML) without rendering the blocks and "extract" the text?