This topic has 4 replies, 2 voices, and was last updated 8 years by Laura.

  • Author
  • #112524
     HDcms
    Participant

    Hi,

    http://seventhqueen.com/demo/sweetdatewp/members/

    <span id=”result_box” class=”” lang=”en”>How</span>

    <span id=”result_box” class=”” lang=”en”>1/ to display a random members?
    2/ and opposite sex (only)<span class=””>?</span></span>

    Regards

     

     

    #112525
     HDcms
    Participant

    http://seventhqueen.com/demo/sweetdatewp/members/

    How :
    1/ to display a random members?
    2/ and opposite sex (only)?

    #112873
     Laura
    Moderator

    Hello, can you explain a bit more?
    Do you mean at the members directory, show only male if you are a woman and opposite?
    Random members do you mean the order?
    Let me know 🙂

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #112912
     HDcms
    Participant

    Hello,

    “Do you mean at the members directory, show only male if you are a woman and opposite?” Yes
    “Random members do you mean the order?” Yes

    list display without using a search criteria

    Regards

    #113342
     Laura
    Moderator

    Hello, right now, only opposite members is not available but there is a base you could use to develop a code here: https://archived.seventhqueen.com/forums/topic/restrict-looking-for-the-opposite
    About the random members, find the file members-loop.php at wp-content/themes/sweetdate/members
    and copy it at wp-content/themes/sweetdate-child/members (create the folder if its not there)

    Then edit the file and find:

    COPY CODE
    
    <?php if ( bp_has_members( bp_ajax_querystring( 'members' ). '&per_page='.sq_option('buddypress_perpage') ) ) : ?>
    

    Replace that with

    COPY CODE
    
    <?php if ( bp_has_members( bp_ajax_querystring( 'members' ). '&per_page='.sq_option('buddypress_perpage'.’&type=random’ )) ) : ?>
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?