Now cs_get_raw_excerpt() is deprecated, who to use?

Hello, my child theme now throws a fatal error because (I think) this function no longer exists in the latest update cs_get_raw_excerpt().

This is used in a function to crete recent posts with excerpts, using a solution I know many people are using which I think came from this forum, named update_x_recent_posts_to_v2.

Is there a replacement for cs_get_raw_excerpt() that I can use?

Hi @stonhams,

Try replacing cs_get_raw_excerpt with cs_trim_excerpt_for_social in your customization. The technique of that function works to get the excerpt if posts are not built in the content builders, but it doesn’t effectively capture the output from our elements. We renamed it to have a more purposeful name that is related to the current places we are using it and to avoid it being used generically in the future considering its limitations.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.