In some cases, you may find some strange wrapping with the default WP-Members registration form. While the best solution is to customize the CSS with a custom stylesheet for your site, there is also a quick workaround that can be applied. Continue Reading →
Blog
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 – 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.
NOTE: The WP-Members Advanced Options extension has simple checkbox options to replace the native WP URLs for these actions with the WP-Members URLs.
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 →