• Resolved fabriciomanc

    (@fabriciomanc)


    How can I display custom fields/meta keys on search results?

    And how can I display nothing before the form submission?

    My WP is integrated with my company’s Active Directory and there are fields retrieved from AD that store user extension, role, department, etc. I’m willing to use it as a directory search, but I’d like to only display something when I submit the form.

    https://wordpress.org/plugins/simple-user-listing/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter fabriciomanc

    (@fabriciomanc)

    I got the custom meta keys on screen 🙂

    Only question now is how to only display information after form submission.

    Plugin Author HelgaTheViking

    (@helgatheviking)

    Sorry, I didn’t sleep well last night… what are you specifically asking now?
    You can override the content-author.php template by copying it to your theme’s simple-user-listing folder and modify it to add whatever meta info that you’d like. You will have access to a global $user object. $user->ID is thus the user’s ID and you can use that to access any user meta.

    Thread Starter fabriciomanc

    (@fabriciomanc)

    I’m sorry to hear that 🙁

    Exactly, I did it and worked fine. Thanks for the fast reply 🙂

    My question now is how to prevent the list before the form submission.
    Should I create another topic ?

    Plugin Author HelgaTheViking

    (@helgatheviking)

    A new thread with a really precise title would be helpful for anyone in the future with the same issue. I’ll try to give it a look when I can.

    Thread Starter fabriciomanc

    (@fabriciomanc)

    Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Display custom fields’ is closed to new replies.