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="http://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 9 years, 3 months ago by
igwebs.
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.