Skip to:
Content
Pages
Categories
Search
Top
Bottom

Blogs loop – group avatar


  • nit3watch
    Participant

    @nit3watch

    How would I get the assosiated group avatar to display rather/in-place of the blogs author to display? Ive tried adding bp_group_avatar but the avatars dont display..

    Im using the group blog plugin, and only groups are able to create blogs.

    Here’s the section from the blogs loop: http://pastebin.com/emLyCxiG

    ps: forgot to mention that members can only create one group

Viewing 3 replies - 1 through 3 (of 3 total)

  • Boone Gorges
    Keymaster

    @boonebgorges

    It’s a bit tricky because, as far as I know, the group blog doesn’t really know that it’s associated with a particular group. From the point of view of the blog, it’s just a blog with multiple authors. Your best bet is probably to modify or hook into the groupblog plugin to make sure that, after it creates a new blog for the group, it also saves a piece of metadata in the wp_x_options table that associates the blog with a group. That way, in the post loop, you can use that metadata to get the group’s avatar.


    nit3watch
    Participant

    @nit3watch

    @boonebgorges Though couldn’t I call the avatar ( group avatar ) that the member/blog’s author is a admin of?


    Anton
    Participant

    @antonrsa

    Is it possible to add the Group avatar to the activity stream instead of the member’s avatar that posted the content on the group?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Blogs loop – group avatar’ is closed to new replies.
Skip to toolbar