Forum Replies Created
-
Hi prockstar,
Please try this code and can put your HTML accordingly.
<?php $user_id = bp_displayed_user_id(); $user_query = new WP_Query( array( 'author' => $user_id,) ); if ( $user_query->have_posts() ) : while ( $user_query->have_posts() ) : $user_query->the_post(); ?> <h2><?php the_title(); ?></h2> <?php the_content(); the_post_thumbnail( 'thumbnail' ); endwhile; wp_reset_postdata(); else : ?> <p><?php esc_html_e( 'Sorry, no posts created by this member.' ); ?></p> <?php endif; ?>Thanks
In reply to: Hardware Requirements for Buddypress and WordPressHi,
It is mentioned here https://buddypress.org/about/requirements/ and this is for WordPress https://wordpress.org/about/requirements/
WordPress clearly stated that it’s ‘Not required, but recommended for better security’
Thanks
In reply to: Overridding Email TokensHi,
Please check this link http://buddypress.wp-a2z.org/oik_api/bp_email_recipientget_name/ and here you will find this filter:
return apply_filters( 'bp_email_recipient_get_name', $this->name, $this );Hopefully, it will help you.
Thanks
In reply to: Thank you and it’s time to move on.Hi @tr3ntbuck,
According to my experience demos are always prepared using settings and if you have any queries regarding that then I guess you can ask pre-sale questions there as well. You can compare your idea/thought with BuddyPress functionality and then can see if it is going to fulfill your need or not.
Thanks
In reply to: Redirect to member home?Please paste this code in your child theme’s functions.php file or you can use this plugin https://wordpress.org/plugins/code-snippets/ as well
add_filter( ‘bp_login_redirect’, ‘ps_redirect_to_profile’, 11, 3 );
function ps_redirect_to_profile( $redirect_to, $redirect_url, $user ){
if( empty( $redirect_to) )
$redirect_to = admin_url();//if the user is not site admin,redirect to his/her profile
if( isset( $user->ID) && ! is_super_admin( $user->ID ) )
return bp_core_get_user_domain( $user->ID );
else
return $redirect_to;}
It will redirect site admins to dashboard and other users to their profile.
Thanks
In reply to: forum topics in activity stream not displayedPlease follow this https://buddypress.org/support/topic/bbpress-forum-posts-not-appearing-in-activity-stream/ and most probably it will solve your issue.
Thanks