Tagged: Buddyblog Pro
Hi there
I am using Buddyblog Pro.
I am trying to allow users to follow other users’ blog posts.
Could you help me find a solution to this?
Many thanks
Daniel- This topic was modified 2 years, 11 months ago by Brajesh Singh. Reason: moved topic to premium forum
For more context
I want to insert a ‘follow’ button on users’ blog posts
(I should have posted this thread in the premium support area, but I hope it’s fine here)
Hi Daniel,
Thank you for the question.Can you please tell me what this follow feature for posts is and how it may work?
Thank you
BrajeshHi Brajesh
Currently, I just use BuddyBoss ‘follow’ on a user’s profile. I don’t have a plunging for this.
Regards
DanielThank you. You can add the following snippet in your child theme to show the follow/unfollow button.
// add follow button below single post content. add_filter( 'the_content', function ( $content ) { if ( is_single() && function_exists( 'bp_get_add_follow_button' ) && is_user_logged_in() && get_current_user_id() != get_the_author_meta( 'ID' ) ) { $content .= '<div class="author-follow-meta">Follow Author: ' . bp_get_add_follow_button( get_the_author_meta( 'ID' ), get_current_user_id() ) .'</div>'; } return $content; } );
Regards
BrajeshHmm I am having difficulties with this.
It is showing the button on the single post, however, nothing happens when the button is clicked.
However, I am trying to put a follow button at the top of the author archive page. How could I do this? Is there a plugin with a button that makes this easy?
Thanks, your help is greatly appreciated.
Daniel
The topic ‘ [Resolved] Buddyblog pro – users follow other users blogs’ is closed to new replies.