Skip to:
Content
Pages
Categories
Search
Top
Bottom

Activity Stream – Blog Posts – Make Featured Image Clickable


  • jcfromkc
    Participant

    @jcfromkc

    On the BuddyPress Activity Stream, new blog posts show up with a post thumbnail and an excerpt of the content. How do I make the post thumbnail clickable so that it takes the visitor directly to the post?

    I’ve tried Automatic Featured Image functions like the one below but they aren’t targeting the featured images on the Activity Stream.

    function wpb_autolink_featured_images( $html, $post_id, $post_image_id ) {
    $html = '<a href="' . get_permalink( $post_id ) . '" title="' . esc_attr( get_the_title( $post_id ) ) . '">' . $html . '</a>';
    return $html;
    }
    add_filter( 'post_thumbnail_html', 'wpb_autolink_featured_images', 10, 3 );

    All of the WordPress solutions I’ve tried have come up short. This seems like a BuddyPress thing.

    Does anyone know how to target the featured image and excerpt for a blog post that appears in the Activity Stream?

    Thx, JC>

Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.
Skip to toolbar