WordPress.org

Forums

BuddyPress Follow
follow buttons appear at the top of my page (3 posts)

  1. talooz
    Member
    Posted 1 year ago #

    hello
    i am trying to impplant the button in my custom loops,
    unfortunately i always get the buttons in the wrong place.

    i have tried using the hooks

    bp_follow_add_follow_button()
    bp_follow_add_listing_follow_button()

    and it always puts the buttons before my loop, at the top of the page..
    i really need help ASAP with that.

    for example, i am trying to put the code at:

    $output .= '<ul class="item-list kleo-bp-newest-members" style="display:none;">';
        ;if ( bp_has_members( 'type=newest' ) ) : while ( bp_members() ) : bp_the_member();
                $output .= section_members_li();
                endwhile;
            endif;
            $output .='</ul>';

    please help!!! :\

    http://wordpress.org/plugins/buddypress-followers/

  2. r-a-y
    Member
    Plugin Author

    Posted 1 year ago #

    Since you're returning the contents, you need to use the correct function that returns the information instead of echoing.

    Try:

    bp_follow_get_add_follow_button()

  3. talooz
    Member
    Posted 1 year ago #

    Hey,
    Thanks for the reply,
    I tried it now but sadly it's still gives me the same issue,
    each button goes up to top of the post...
    thanks

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • BuddyPress Follow
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.