Skip to:

Need help creating custom members loop please.

  • wettowel


    Hey guys I need some help with php/buddypress.

    Im trying to create a custom member directory for my website that displays online users…I am very new to php, I have looked at the documentation but i don’t understand what i am doing wrong.

    Things i have done thus far:

    I created a new directory called “buddypress” in my theme (my theme is Divi), I then copied the “members” folder from buddypress and put a duplicate in my new “buddypress” folder within my theme. After that i renamed the “members-loop.php” file to “online-members-loop.php”, and created a new page called “online members”.

    I didn’t make any adjustments to the code at this point and tried to see if it worked… It did not, my online members page is still just blank. I then tried to edit some things within the “online-members-loop.php” file i now have. I changed “<?php if ( bp_has_members( bp_ajax_querystring( ‘members’ ) ) ) : ?>”

    to this: “<?php if ( bp_has_members( ‘type=online’ ) ) : ?>”

    I tried to load the page again annnnddd… nothing, nothing at all. It was at this point i knew i was doing something incredibly wrong because even before altering code, the members page didnt load anything.

    If anyone could help a newbie out i would greatly appreciate it 🙂

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar