Skip to:
Content
Pages
Categories
Search
Top
Bottom

Any guesses why I’m having duplicates?


  • athep
    Participant

    @athep

    I have a custom loop on my home page and it gets all activities based on the groups the user is subscribed to, the problem is that while the activity content is correct, the group name and group avatar stay all the same for the last fetched group

    <?php if ( bp_has_activities(bp_ajax_querystring( 'activity' ) . '&action=activity_update&scope=groups' ) ): ?> //this only gives me activity updates only and limits it to the groups I'm subscribed to
     <?php while ( bp_activities() ) : bp_the_activity(); ?>
      <?php bp_group_avatar( ); ?> //this repeats the same group avatar
      <?php bp_group_name(); ?> //this repeats the same group name
      <?php bp_activity_content_body(); ?> //all contents are different and correctly presented
     <?php endwhile; ?>
    <?php endif; ?>

    are there methods I could use for example bp_the_activity_group_name and bp_the_activity_group_avatar?

  • You must be logged in to reply to this topic.
Skip to toolbar