• Resolved ciabattachoo

    (@ciabattachoo)


    Hi, I have custom blocks within gutenburg which allow for the addition of InnerBlocks and I can’t get relevanssi to include these InnerBlocks when generating excerpts.

    After a lot of searching I discovered there is a core wordpress filter to add custom wrapper blocks for excerpt generation within wp core -> excerpt_allowed_wrapper_blocks – When I add my custom blocks to that array the InnerBlocks are included within wordpress core excerpt generation, but still skipped over when using relevanssi.

    Wondering if there is something obvious I am missing, like a filter etc… ?

    FYI – When I output the indexed content of the said posts the ‘post content’ section does include the content of the inner blocks.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Mikko Saari

    (@msaari)

    Try this:

    add_filter( 'relevanssi_pre_excerpt_content', 'relevanssi_gutenberg_block_rendering', 10, 2 );

    Does that help?

    Thread Starter ciabattachoo

    (@ciabattachoo)

    Unfortuneatly not, seems to still skip over the inner blocks and generate excerpts purely based on top level blocks and ACF content etc..

    Thread Starter ciabattachoo

    (@ciabattachoo)

    Sorry, yes it is working now! Hadnt refreshed properly, Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Excerpt generation skipping InnerBlocks within custom blocks’ is closed to new replies.