Add excerpt and post thumbnail to Buddypress blog directory page [closed]

I don’t have a complete answer for you. But I can point out that you should use the filter hook provided in the function bp_blog_latest_post() So something like: add_filter(‘bp_get_blog_latest_post’, ‘your_function’, 1); function your_function( ) { global $blogs_template; $str = // build your string to include excerpt and thumbnail return $str; } I don’t recall if … Read more

read more, even if excerpt not trimmed

Try a simple string replacement. The following is untested: function fabs_excerpt_more($output) { global $post; $output = str_replace(‘</p>’, ‘<a class=”more” href=”‘. get_permalink($post->ID) . ‘”>></a></p>’, $output); return $output; } add_filter( ‘excerpt_more’, ‘fabs_excerpt_more’ );

Why is my excerpts not showing if not explicitly declared?

It was ofc me who misunderstood how it all works. The WP_Post instance will not generate the excerpt for you, witch makes sense, less overhead when not using it. I had to loop through it, sense I don’t have access to this logic in the view because of timber. $context[‘blog_posts’] = get_posts( [ ‘suppress_filters’ => … Read more