This particular code snippet isn’t necessarily part of the plugin itself. But since the plugin relies on post excerpts, it can help fix a what can be a minor annoyance on some sites. WordPress automatically puts in an anchor link to where the ‘more’ tag is. So when you click “read more” the browser will not only load the full post, it will jump to the location where the ‘more’ tag is.Depending on the length of your excerpt and the header of your site, this can make browsing awkward; especially if your average reader is like me – wanting to read the entire post from the beginning.
Continue Reading →Tips and Tricks
Disable RSS feeds
The WP-Members recommended WP Setting is to set RSS to summary. But if your site doesn’t need to have an RSS feed (such as a static site using only pages, or if you simply do not promote via RSS), it might be advantageous to turn of RSS. Then that is one less thing you have to worry about protecting. Here is how you can turn off RSS feeds for your site altogether. Continue Reading →
Bootstrap sidebar login example for non-Bootstrap themes
There is a lot of interest in the sidebar login shown on this site, even by users who may not be using a Twitter Bootstrap theme. The tutorial in the “How I Did It” category is specific to Twitter Bootstrap, which this particular site uses. But this tutorial is an example of how you can create this type of login wiget styling without using a theme based on Twitter Bootstrap. Actually, you will be using Bootstrap or some of it, but loading it with your existing theme and/or custom WP-Members custom css. For this example, we will create this with a simple theme – WordPress TwentyTen. Continue Reading →
Blocking content in a custom template
Lately, this question has come up a lot. How do you block content that is outside the loop and still display the login/registration forms on the page.
This type of issue may come up if you are using a custom query to put some specific content on a specific page, or it might be that you are displaying specific data that you want to protect. As long as it is something in the WordPress template framework, you can still use WP-Members to block the content. Continue Reading →
Redirect requests to wp-login to a front end login page
Note: If you want an easy way to do this, the Advanced Options extension offers this as a setting. But if you need more control over the process than a simple “on/off” switch, the method described here is a flexible and customizable alternative.
The new version of WP-Members 2.7.6 adds a method of picking up the redirect_to parameter. This allows you to make redirecting from the wp-login more seamless, since the wp-login is designed to redirect the user back to where their login was requests (such as comments or a forum). Continue Reading →