A couple of things…
First, wherever one logs in, you will resolve to that page. In the majority of cases, it doesn’t make much sense to attempt to view a page, login and be directed away from that page.
Second, but more importantly, if you are seeing <!–members-area–>
, then you have something wrong with the short code. My guess is that you do not have that configured correctly. If you put this in using the visual editor for the page, WP will convert that as it believes you did not intend to put in HTML markup. You have to use the HTML view to put in the shortcode.
Alternatively, shortcode support has been added and for the WP shortcode API, you would use the visual editor. Use the shortcode [wp-members page=”members-area”]
So to sum up:
- login will always resolve to whatever page you are logging in on.
- if you use
<!–members-area–>
, you MUST use the HTML view in the editor.
- if you use [wp-members page=”members-area”], use the Visual view in the editor.