• Resolved G

    (@glienhard)


    Hi,

    I’m using the user-list shortcode to successfully give me the list of users specified, but unfortunately it just displays the email address for a result. I need it to display other fields in the user profile (i.e. First Name and Last Name fields). I have not setup the user-search yet, but I’m guessing it is the same way?

    Along the same lines, I have build a welcome page for users once they have logged in. On this page I’m providing links to specific functions. One function is to be able to view their own profile. From the view page, I plan to add a link to edit their profile. I can use the user-list shortcode to give me the link but again it displays the email address. I simply need the link to put in my body text.

    Can you please advise if this is currently available? If it is not available, when can it be expected to be added. If it makes any difference, I have the Premium version.

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor etoilewebdesign

    (@etoilewebdesign)

    Hi Garry,

    If you type “help” after any of the shortcodes in the admin (e.g. [user-list help), it will display a list of all the available attributes for that shortcode and what each of them does.

    Doing this, you’ll see that display_field is one of the available attributes. You can use this to choose which fields show in the user list. For example:

    [user-list display_field="First Name,Last Name"]
    

    You’ll also see that user_profile_page is an available attribute. You can use this to specify the URL of the page on which you have the [user-profile] shortcode. This will make it so that, when you click on a user in the user list, it goes to their profile. For example:

    [user-list display_field="First Name,Last Name" user_profile_page="https://url.of.profile.page"]
    
    Thread Starter G

    (@glienhard)

    Thank you for all of that!

    The display_field attribute works beautifully and is exactly what I needed.

    I finally got the help function to work. Note, when a user types help after an shortcode there cannot be a closing square bracket. That was the mistake I kept making.

    May I suggest that all the function attributes be documented in your user manual.

    Thanks again!!

    Gary, where in the admin can you do this since you got it to work! I have tried placing it on a page then do a review and nothing shows up! I can’t seem to get to provide the short codes as its suggested.
    Thanks

    • This reply was modified 7 years, 9 months ago by igwebs.
    Plugin Contributor etoilewebdesign

    (@etoilewebdesign)

    Hi webs,

    Are you talking about the shortcode help function or the user-list shortcode?

    The short code help function. I keep trying with various function on a blank page but all I get is the shortcode itself! I place it like on the page this: [login help
    Thanks

    Thread Starter G

    (@glienhard)

    The help function for the shortcode must be done when you are on the editor screen. Start typing the shortcode. In the example above, type “[user-list help” and the help for the shortcode will appear. You must not have the ending square bracket ] on the shortcode. I would also recommend going to a blank area at the bottom of your page to do this. That way there is no other text that could interfere with the output.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘User List Results Display’ is closed to new replies.