Skip to:

[Resolved] Code for members?

  • nathinah


    Hello everyone, I have a little strange problem that I couldn’t solve alone 🙁

    I’m creating an online dating communities for a client who asked me to put, in the frontpage, a search for users.

    I’ll explain: he wants to distribute tickets with different codes that refer to a user’s profile. Who receives the ticket, go to the website, enter the code and is magically redirected to the page of the mysterious user. I know it sounds strange, but that’s what he wants. ARGH!

    Is there a way to create and associate a numerical code (automatically, pleeease) to the page of a user and/or do a search using the user ID?

    Thanks a lot (lot lot lot) to those who want to give me some advice, I’m desperate!


Viewing 3 replies - 1 through 3 (of 3 total)

  • julianprice


    [DISCLAIMER: I have no/little experience in design & development in wordpress, so I am learning but thought I comment in effort to be helpful]

    I am unsure of the code to search/query results of users but based on he analogy you presented in imputing a # number to show suggested match. I would think is easily possible by echoing out member/user Data id #.

    That would be my thought, suggest maybe looking /googling for user meta and how to use them.

    Henry Wright


    Also, check out WP_User_Query

    You can do what you need to easily using the search parameters. For example:

    $args = array(
        'search' => $string,
        'search_columns' => array( 'ID' ),
    $user_query = new WP_User_Query( $args );

    Where $string is the user submitted search string i.e. the user ID



    Thanks @henry for referencing… I had thought to refer to something but was cautious on my experience; further, replying just via mobile phone.

    I would refer to Henry because I have seen his continuous engagement on the buddypress forums. I appreciate Henry

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Code for members?’ is closed to new replies.
Skip to toolbar