• Hi, the filter applied to the “get_the_excerpt” does not consider the provided “post” object (second parameter) and only relies on the global $post. But when the function get_the_excerpt() is used passing a specific post, the code returns a wrong excerpt.

    You should change the display_cached_excerpt($excerpt = ”) to display_cached_excerpt($excerpt = ”, $apost = null), checking if the provided $apost is null and only in that case use the global $post. Or you can simply use the get_post() function that does exactly that.

    Thank you!

You must be logged in to reply to this topic.