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 – it is only limited by your imagination. Continue Reading →
Redirecting WordPress urls for login, logout, and registration
Depending on a number of factors, there may be places in your WordPress site where login and logout URLs are directing to the WordPress “backend” wp-login.php. These can be in the comments.php template or other places in your theme. Also, various plugins such as forums will utilize these urls.
This article will explain a simple way of redirecting these URLs to the login and registration pages set in WP-Members.
Continue Reading →How to add multiple user levels by category
This post will demonstrate how to restrict content to users based on user levels. Content could be restricted by category, by tag, or by some other meta (such as a custom field).
This example will demonstrate “level” restriction by category, such as Silver, Gold, and Platinum categories. In this example, we will set up those levels so that the Gold level users have access to Gold & Silver, and Platinum level users have access to all of the content.
Adding user display name to the registration form
WordPress does not allow for users to change their username, so neither does WP-Members. However, it does allow for the use of “display name” which is the name that is displayed on the site when showing users’ names. The default install of WP-Members does not make use of display name. In fact, by default, it adds the user’s username to this field so that it is not empty in the database, just in case you are using that information somewhere else on the site (such as in a forum).
But what if you want to make use of the display name field? How can you add that to the front-end user profile in WP-Members. This post will show you how to add it to the registration form (which by default includes the user update form), and then how to show it only in the user update form. Continue Reading →
User redirection on logout
The default setup of the plugin will redirect the the user to the blog’s home page when they click the logout link. But what if you want to direct them somewhere else when they are logging out. Here are some ideas on how to do that. Continue Reading →