• Resolved Anita Epp

    (@anitaepp)


    I’m working on a Local site, building a child theme on the Genesis Framework. I’m using the Genesis Blocks plugin, and keep all my page and post content within Containers (the Genesis Block). I currently have no other plugins installed.

    In Theme Settings > Content Archives, I’ve selected “Entry Content” and limited characters to “150”. The issue is, in search results content will not display if it is inside a Genesis Block. If all content was contained within a Genesis Block (like Container), the Entry Headers display, but no Entry Content will display. I’ve switched themes to Twenty Twenty-One, and the issue is the same — the content within Genesis blocks doesn’t display in the Entry Content of search results, archive pages, etc.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi Anita,

    I’ve had the same experience. Apparently this is a known WordPress core issue, and not specific to Genesis Blocks.

    From what I understand, an excerpt is only displayed if WordPress can parse the content to generate a summary. But WordPress will not parse content that is nested inside another block (such as a paragraph block within a container block).

    To get around this problem, you can create a manual excerpt. By default, posts have an Excerpt field in the editor, but pages do not. To add the manual excerpt field to a page, you can add this PHP snippet to your site:

    add_post_type_support( 'page', 'excerpt' );

    I hope this helps.

    Thread Starter Anita Epp

    (@anitaepp)

    @detroitwidget That clarifies the issue for me, and thank you so much for the suggested solution.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Entry Content does not display when inside a Genesis Block’ is closed to new replies.