[Resolved] Buddypress activity always jumps to TOP
-
Hi. I have created a shortcode for activity to display in my frontpage.
/*activity stream*/ if (!function_exists('wwn_bp_activities')) { function wwn_bp_activities( ) { if ( bp_has_activities( bp_ajax_querystring( 'activity' ) . 'per_page=5' ) ) : echo "<ul id=\"activity-stream\" class=\"activity-list item-list\">"; while ( bp_activities() ) : bp_the_activity(); locate_template( array( 'activity/entry.php' ), true, false ); endwhile; echo "</ul>"; endif; } add_shortcode('wwn_bp_activities', 'wwn_bp_activities'); }
Say this is my layout (entered text) for the Home page. :
[h3]WELCOME TO MY SITE[/h3] <strong>Site Activity</strong> [wwn_bp_activities]
the ideal output should have been:
WELCOME TO MY SITE
Site Activity
Activity 1
Activity 2
Activity 3
Activity 4
Activity 5
…But I am getting the following output:
Activity 1
Activity 2
Activity 3
Activity 4
Activity 5
…
WELCOME TO MY SITE
Site ActivityNo matter what I do, the activity from the shortcode always jumps to the top of the page (article)
Please help
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘[Resolved] Buddypress activity always jumps to TOP’ is closed to new replies.