Tag Info

New answers tagged

0

You can hide profile fields on the edit screen from everyone except site admins - therefore they can only be edited by site admins. They will still be visible on the public profile screen. You can get the field id by looking at the url in wp-admin when you edit that field, or just rolling over the edit button. Add this function to your child-theme ...


0

Add this snippet to your child-theme functions.php or bp-custom.php function bpfr_hide_profile_edit( $retval ) { // remove field from edit tab if( bp_is_profile_edit() ) { $retval['exclude_fields'] = '2'; // field ID's separated by comma } // allow field on register page if ( bp_is_register_page() ) { $retval['include_fields'] = '2'; ...


1

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 );


0

Try using standar usr interface from BuddyPress. For instance: http://yourdomain/members/youruser/settings/


0

You can try BP Login Redirect Plugin description: Allows to decide buddypress website admins where their users should land after log in


0

You can try (for instance) with some of this actions: add_action( 'bp_get_activity_content_body', 'your_function',1); add_action( 'bp_get_activity_content', 'your_function',1); add_action( 'activity_loop_end', 'your_function');


0

New versions of BuddyPress have dinamic menus integrated with WordPress. See this image:


1

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


0

If you use this code directly below while ( bp_members() ) : bp_the_member(); in the members loop, you’ll be able to see which members are author. <?php $user_id = bp_get_member_user_id(); $user = new WP_User( $user_id ); if ( $user->roles[0] == 'author' ) { echo 'this user is an author'; } ?> I know this isn’t exactly what ...


2

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.



Top 50 recent answers are included