Lxb_dga_users shortcode reference

Blogs on our Legacy and Full Service product plans may output author page content using shortcode. The lxb_dga_users shortcode quickly generates a list of authors on a page. This document explains the lxb_dga_users arguments that tweak the output.



Arguments tell the shortcode which authors to display and what profile information to display for each. Several arguments can be placed within the brackets surrounding the shortcode to perform functions like filtering or sorting a list of authors:

[lxb_dga_users include='10,20,40,50' min_posts='10']

The sample above displays five authors (listed by user ID) as long as they have published more than 10 posts.


Filtering users

These arguments decide which users will display on the page.

  • exclude='10,20,30'
    Exclude specific users from the output by adding their user ID within the quotes. Cannot be used with the include argument.
  • hide_unpublished='1'
    Hide unpublished authors on the page. Set value to 0 to display unpublished authors.
  • include='10,20,30,40,50'
    Include specific user IDs in the page output. Cannot be used with the exclude argument.
  • min_posts='10'
    Display only users who have authored the specified number of posts.


Sorting users

Control how authors are sorted on the page.

  • orderby='as_input': Sort by user ID order specified in the include= argument.
  • orderby='last_name': Sort users by last name.
  • orderby='lxb_dga_order': Sort users based on the value in their user profile. Head to Users > All Users, click a username, then change the value in Display Order.
  • orderby='post_count': Sort authors by the number of posts assigned to them.


Display options

Control which parts of a user profile display on the page.

  • avatar_size=60
    Display a user photo at the specified pixel size.
  • link_to_archive_label='###display_name###'
    Display a link to the author's archive page.
  • link_to_email_label='###display_name###'
    Display a link to the user's email address.
  • link_to_office_location_label='###office_location###'
    Display the office location set in the user profile.
  • link_to_website_in_new_tab='1'
    Determine if the author's website link opens in a new tab. Set value to 0 to open the website in the current tab.
  • link_to_website_label='Read ###display_name###'s biography'
    Display a link to the website specified in the user profile. You can edit the text between the quotes.
  • num_cols=2
    Control the number of columns output on the page.
  • style_group=''
    Controls whether or not the bio text wraps around the user photo.
    style_group='full_bio': Displays user bio underneath the user photo.
    style_group='stacked_paragraphs': Wraps user bio text around the user photo.
Have more questions? Submit a request


© LexBlog | Terms of Service | Privacy Policy