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.
If you enable the FOLLOWERS component then the following short-codes are available:
Display the list of followers for a user.
[simplepressmembermanager_followers user_id=”123” style=”default” max=”11” ]
Shows the people that a user is following.
[simplepressmembermanager_following user_id=”123” style=”default” max=”11” ]
Displays a “follow bar” with the total number of followers and following of a particular user.
[simplepressmembermanager_followers_bar user_id=”123” ]
If you enable the MESSAGING component then the following short-codes are available:
Shows the message box for a specific user.
[simplepressmembermanager_messages user_id=”123” ]
Use this to show the message button for a specific user
[simplepressmembermanager_message_button user_id=”123” ]
Shows the message count for a specific user
[simplepressmembermanager_message_count user_id=”123” ]
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.
If you enable the NOTIFICATION component then the following short-codes are available:
[simplepressmembermanager_notifications]
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
If you enable the NOTIFICATION component then the following short-code is available:
[simplepressmembermanager_online max=”11” roles=”all” ]
If you enable the USER REVIEWS component then the following short-codes are available:
[simplepressmembermanager_top_rated roles=”member” number=”5” ]
[simplepressmembermanager_most_rated roles=”member” number=”5”]
[simplepressmembermanager_lowest_rated roles=”member” number=”5”]
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” ]
If you enable the PROFILE COMPLETENESS component then the following short-codes are available:
[simplepressmembermanager_profile_completeness]
[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:
[spmm_user_bookmarks]
[spmm_user_bookmarks user_id="id"]
[spmm_bookmarks_button]