Group Mods

  • Profile picture of @mercime
  • Profile picture of r-a-y
  • Profile picture of Hugo

Problem with bp_has_activities (7 posts)

Started 1 year, 9 months ago by: listweb

  • Profile picture of listweb listweb said 1 year, 9 months ago:

    I put a block code in the head to list only the last activity, but when i enter in the http://edsonaparecido.com.br/activity/ they show me only one, and not 10.

    If I remove the block of last activity in the top, in http://edsonaparecido.com.br/activity/ they list normal.

    what’s wrong?

  • Profile picture of @mercime @mercime said 1 year, 9 months ago:

    If you paste the “block of code” you added in the head at buddypress.pastebin.com, it will be made clear

  • Profile picture of listweb listweb said 1 year, 9 months ago:

    http://buddypress.pastebin.com/HhtxRY2n

    In the header.php the call:
    if ( bp_has_activities( ‘per_page=1′ ) ) :

    After in the activity-loop.php:
    if ( bp_has_activities( ) ) :

    But they continues only show 1

  • Profile picture of Paul Gibbs Paul Gibbs said 1 year, 9 months ago:

    You’ve got per_page=1

  • Profile picture of listweb listweb said 1 year, 9 months ago:

    Paul Gibbs, this code bp_has_activities( ‘per_page=1′ ) is in the header.php

    In the activity-loop.php is:
    bp_has_activities( bp_ajax_querystring( ‘activity’ ) )

    but only show 1 again

  • Profile picture of listweb listweb said 1 year, 9 months ago:

    I put if ( bp_has_activities( ‘per_page=10′ ) ) in the activity-loop.php

    Not works

  • Profile picture of listweb listweb said 1 year, 8 months ago:

    Solved:

    I put max=1 and not per_page=1

    Then the second bp_has_activities show 10 and the first only 1