Skip to:
Content
Pages
Categories
Search
Top
Bottom

shorten activity excerpts

  • Hi,

    I am trying to change edit my activity stream so that the excerpts are shorter than the default. I am working on my child theme version of activity/entry.

    I think I should be adding a parameter to the bp template tag

    bp_activity_content_body

    Any ideas where i might find a list of parameters for this tag?

    Thanks,

    jimmmy

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    Can anyone point me in the right direction? I’m stumped.

    Jimmmy

    you could shorten them via a filter prior to updating the db. it just depends on the component as each have their own filter on the content.

    ie
    'content' => apply_filters( 'bp_activity_new_update_content', $activity_content ),

    or the filter on the activity templatetag
    apply_filters( 'bp_get_activity_content_body', $activities_template->activity->content, &$activities_template->activity );

    Thanks a lot, Rich.

    Not sure I’m quite up to filters yet, but I’ll have a look. So there’s no easy way to determine an amount of words or something?

    Cheers,

    Jimmmy

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘shorten activity excerpts’ is closed to new replies.
Skip to toolbar