Category: Shortcodes
-
List of replacement shortcodes
As of WP-Members 3.1, any shortcodes using the [wp-members] tag are obsolete. If any of the old tags are used on your site, you may notice entries in your error log indicating that the tag has been deprecated and replaced. Any shortcode using this tag should be replaced with more recent tags. This is a…
-
Create a sidebar login status and logout link
In some layouts, you may wish to not use the WP-Members sidebar widget for logging users in, but you may still want to display a user’s login status (when logged in) and provide a logout link. Here is how you can do that with a plain text widget.
-
Create a custom shortcode to display content to registered members based on checkbox value
Suppose that you have a checkbox in your registration form and you want to have a shortcode to display content to users who have a certain value of that checkbox. This tutorial will show you how to create such a shortcode. This concept could also be extended to be any specific value from registration –…
-
Adding shortcodes to other locations
By default, WordPress only parses shortcodes in the main content area. Suppose you want to use shortcodes (WP-Members or otherwise) in locations other than the body text? Here are some snippets you can add to your theme’s functions.php file to allow the use of shortcodes in the sidebar, comments, and excerpts: