Tag Info

Hot answers tagged


Not in the url, but you can pass other parameters in the groups loop. There is a search_terms parameter in bp_has_groups(). It also has an orderby parameter that accepts total_member_count as the property. Assuming the tag info is stored in group_meta, you can add a meta_query parameter to the bp_has_groups(). More info from the BuddyPress codex.


To preserve pagination, try: <?php $authors = get_users( array( 'fields' => 'ID', 'role' => 'author' ) ); $authors = implode(',', $authors); ?> <?php if ( bp_has_members( bp_ajax_querystring( 'members' ). '&per_page=25&include=' . $authors) ) : ?> //etc


Use the save_post hook. Try something like: function jude_classified_activity_entry( $post_id, $post, $update ) { $slug = 'classified'; if ( $slug != $post->post_type ) return; bp_activity_add( // etc ); } add_action( 'save_post', 'jude_classified_activity_entry', 15, 3 );

Only top voted, non community-wiki answers of a minimum length are eligible