BuddyDev

Search

[Resolved] Buddyblog pro – users follow other users blogs

Tagged: 

  • Participant
    Level: Initiated
    Posts: 19
    Daniel Moore on #42064

    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, 4 months ago by Brajesh Singh. Reason: moved topic to premium forum
  • Participant
    Level: Initiated
    Posts: 19
    Daniel Moore on #42065

    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)

  • Keymaster
    (BuddyDev Team)
    Posts: 24190
    Brajesh Singh on #42108

    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
    Brajesh

  • Participant
    Level: Initiated
    Posts: 19
    Daniel Moore on #42116
    This reply has been marked as private.
  • Participant
    Level: Initiated
    Posts: 19
    Daniel Moore on #42119
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 24190
    Brajesh Singh on #42133
    This reply has been marked as private.
  • Participant
    Level: Initiated
    Posts: 19
    Daniel Moore on #42166

    Hi Brajesh

    Currently, I just use BuddyBoss ‘follow’ on a user’s profile. I don’t have a plunging for this.

    Regards
    Daniel

  • Participant
    Level: Initiated
    Posts: 19
    Daniel Moore on #42170

    plugin* 🙂

  • Keymaster
    (BuddyDev Team)
    Posts: 24190
    Brajesh Singh on #42194

    Thank 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
    Brajesh

  • Participant
    Level: Initiated
    Posts: 19
    Daniel Moore on #42199

    Hmm 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.

This topic is: resolved