Simple:Press Documentation

Shortcodes

Shortcodes allow you to display data from the Simple:Press Member Manager plugin in most places where WordPress allows you to enter text.  In particular these includes, posts, pages and widgets.

Note: Some plugins and themes might override shortcode use in certain locations on your site (such as widgets and custom post types).  If a short-code is not displaying data when you think it should, the first thing you should do is disable all other plugins and switch your theme to the Twenty Nineteen theme.

Core Short Codes

  • User Profile, Login and Registration Forms:  Go to MEMBER MANAGER->FORMS and look on the right hand side of each form for its unique short-code.  These codes are best used in full-screen elements such as pages instead of sidebars and widgets.
  • Member Directory:  You can find these codes by going to MEMBER MANAGER->MEMBER DIRECTORIES. Look on the right hand side of each directory for its unique short-code.  These codes are best used in full-screen elements such as pages instead of sidebars and widgets.
  • Account Form: [simplepressmembermanager_account]
  • Password Reset: [simplepressmembermanager_password]

Component: Followers

If you enable the FOLLOWERS component then the following short-codes are available:

List Followers

Display the list of followers for a user.

[simplepressmembermanager_followers user_id=”123” style=”default” max=”11” ]
  • user_id is the user id of the user whose followers you would like to display
  • style has two options – ‘avatars’ and ‘default’
  • max is the number of followers to display.

List Following

Shows the people that a user is following.

[simplepressmembermanager_following user_id=”123” style=”default” max=”11” ]

Follow Bars

Displays a “follow bar” with the total number of followers and following of a particular user.

[simplepressmembermanager_followers_bar user_id=”123” ]

Component: Messaging

If you enable the MESSAGING component then the following short-codes are available:

Show Message Box

Shows the message box for a specific user.

[simplepressmembermanager_messages user_id=”123” ]

Show Message Button

Use this to show the message button for a specific user

[simplepressmembermanager_message_button user_id=”123” ]

Show Message Count

Shows the message count for a specific user

[simplepressmembermanager_message_count user_id=”123” ]

Component: Notices

If you enable the NOTICES component then the following short-codes are available:

[simplepressmembermanager_notice id=”123” ]

This shows a specific notice.  To get a notice id go to MEMBER MANAGER->NOTICES.  The shortcode will be on the right hand side of each notice page.

Component: Notifications

If you enable the NOTIFICATION component then the following short-codes are available:

Show Notifications

[simplepressmembermanager_notifications]

Show Notification Count

Displays the total number of notifications for the current user.

[simplepressmembermanager_notification_count]

Both of these codes can only be used on a “notification” page

Component: Online

If you enable the NOTIFICATION component then the following short-code is available:

[simplepressmembermanager_online max=”11” roles=”all” ]

Component: Reviews

If you enable the USER REVIEWS component then the following short-codes are available:

Top Rated Reviews

[simplepressmembermanager_top_rated roles=”member” number=”5” ]

Most Rated Reviews

[simplepressmembermanager_most_rated roles=”member” number=”5”]

Lowest Rated Reviews

[simplepressmembermanager_lowest_rated roles=”member” number=”5”]

Component: User Tags

If you enable the USER TAGS component then the following short-code is available:

[simplepressmembermanager_tags term_id=”123” number=”1” orderby=”count” order=”desc” ]
  • term_id:  This is the PARENT term ID (remember, all user tags are under a parent term, eg: Skills.  The term id is the numeric id of this parent.)
  • number: maximum number of tags to display
  • orderby: sort order of terms
  • order: ‘asc’ – ascending sort or ‘desc’ – descending sort

Component: Profile Completeness

If you enable the PROFILE COMPLETENESS component then the following short-codes are available:

Show the profile completeness status of the current logged in user

[simplepressmembermanager_profile_completeness]

Display the profile progress bar

[simplepressmembermanager_profile_progress_bar user_id=”123” ]

The user id for this one is optional and, if not provided, will default to the current logged in user.

Component: Bookmarks

If you enable the BOOKMARKS component then the following short-codes are available:

Show the bookmarks for the currently logged in user

[spmm_user_bookmarks]

Show the bookmark for a particular user

[spmm_user_bookmarks user_id="id"]

Show the bookmark link

[spmm_bookmarks_button]