Title: roninDD's Replies | WordPress.org

---

# roninDD

  [  ](https://wordpress.org/support/users/ronindd/)

 *   [Profile](https://wordpress.org/support/users/ronindd/)
 *   [Topics Started](https://wordpress.org/support/users/ronindd/topics/)
 *   [Replies Created](https://wordpress.org/support/users/ronindd/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/ronindd/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/ronindd/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/ronindd/engagements/)
 *   [Favorites](https://wordpress.org/support/users/ronindd/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Advanced Recent Posts] Buddy press member or activity not working](https://wordpress.org/support/topic/buddy-press-member-or-activity-not-working/)
 *  Thread Starter [roninDD](https://wordpress.org/support/users/ronindd/)
 * (@ronindd)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/buddy-press-member-or-activity-not-working/#post-6287934)
 * Hi,
 * I’m using custom loops but they are based on buddy press original ones but not
   for activity (that is the original one):
 *     ```
       /**
        * Fires before the start of the activity loop.
        *
        * @since BuddyPress (1.2.0)
        */
       do_action( 'bp_before_activity_loop' ); ?>
   
       <?php if ( bp_has_activities( bp_ajax_querystring( 'activity' ) ) ) : ?>
   
               <?php if ( empty( $_POST['page'] ) ) : ?>
   
                       <ul id="activity-stream" class="activity-list item-list">
   
               <?php endif; ?>
   
               <?php while ( bp_activities() ) : bp_the_activity(); ?>
   
                       <?php bp_get_template_part( 'activity/entry' ); ?>
   
               <?php endwhile; ?>
   
               <?php if ( bp_activity_has_more_items() ) : ?>
   
                       <li class="load-more">
                               <a href="<?php bp_activity_load_more_link() ?>"><?php _e( 'Load More', 'buddypress' ); ?></a>
                       </li>
   
               <?php endif; ?>
   
               <?php if ( empty( $_POST['page'] ) ) : ?>
   
                       </ul>
   
               <?php endif; ?>
   
       <?php else : ?>
   
               <div id="message" class="info">
                       <p><?php _e( 'Sorry, there was no activity found. Please try a different filter.', 'buddypress' ); ?></p>
               </div>
   
       <?php endif; ?>
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Advanced Recent Posts] Buddy press member or activity not working](https://wordpress.org/support/topic/buddy-press-member-or-activity-not-working/)
 *  Thread Starter [roninDD](https://wordpress.org/support/users/ronindd/)
 * (@ronindd)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/buddy-press-member-or-activity-not-working/#post-6287898)
 * That’s nice Eugene, let me know if I can send you any information that may help
   in finding the bug or the conflict.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Advanced Recent Posts] Buddy press member or activity not working](https://wordpress.org/support/topic/buddy-press-member-or-activity-not-working/)
 *  Thread Starter [roninDD](https://wordpress.org/support/users/ronindd/)
 * (@ronindd)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/buddy-press-member-or-activity-not-working/#post-6287894)
 * I have just updated to the latest release and it is broken again.
 * My solution
 * adding a new attribute for shortcodes so I know if they are rendered in a page
   or a sidebar (mainpage true means no sidebar) and I allows it only in the front
   page:
 *     ```
       'mainpage'                  => 'false'
           ), $atts );
   
           $Path=$_SERVER['REQUEST_URI'];
           $URI= $Path;
   
           echo "valor de main page " . $a['mainpage'];
   
           if($a['mainpage']== 'true')
           {
               echo "main page true";
              if(!($URI == "/"))
              {
                 echo "not front page";
                 return null;
              }
   
           }
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Advanced Recent Posts] Buddy press member or activity not working](https://wordpress.org/support/topic/buddy-press-member-or-activity-not-working/)
 *  Thread Starter [roninDD](https://wordpress.org/support/users/ronindd/)
 * (@ronindd)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/buddy-press-member-or-activity-not-working/#post-6287893)
 * Hi there,
 * Any news? I fixed it by adding an extra attribute to the shortcode. Nevertheless
   I’m not able to find the cause
 * Thanks
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Advanced Recent Posts] Buddy press member or activity not working](https://wordpress.org/support/topic/buddy-press-member-or-activity-not-working/)
 *  Thread Starter [roninDD](https://wordpress.org/support/users/ronindd/)
 * (@ronindd)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/buddy-press-member-or-activity-not-working/#post-6287777)
 * The member page is fixed, however the activity is not.
 * members/activity/
 * have you had a look to it?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Advanced Recent Posts] Buddy press member or activity not working](https://wordpress.org/support/topic/buddy-press-member-or-activity-not-working/)
 *  Thread Starter [roninDD](https://wordpress.org/support/users/ronindd/)
 * (@ronindd)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/buddy-press-member-or-activity-not-working/#post-6287768)
 * Try this mirror [http://163.117.141.197/](http://163.117.141.197/)
 * The members page is [http://163.117.141.197/members](http://163.117.141.197/members)
 * Now is fixed. Do you want me to remove the fix from the plugin?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Advanced Recent Posts] Buddy press member or activity not working](https://wordpress.org/support/topic/buddy-press-member-or-activity-not-working/)
 *  Thread Starter [roninDD](https://wordpress.org/support/users/ronindd/)
 * (@ronindd)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/buddy-press-member-or-activity-not-working/#post-6287724)
 * I found a work around, if we’re in the members page, just don’t process anything(
   I have no short code in the member page, but it just try to process it as if 
   it were the home page)
 *     ```
       function lptw_display_recent_posts ( $atts ) {
           $default_posts_per_page =  get_option( 'posts_per_page', '10' );
           $Path=$_SERVER['REQUEST_URI'];
           $URI= $Path;
   
           if($URI == "/members/")
           {
               return null;
           }
           //function continues...
       ```
   

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