** UPDATE **
I've resolved the below issue by using the fancy login option in the WP-eMember settings page - *phew* :)
** UPDATE **
Hey Guys,
I have a use case for login redirection that I'm not sure how to tackle using eMember:
1) User visits login page directly
2) User logs in successfully
3) User is shown the current member status details on the Login Page (i.e. not redirected)
The reason I am not implementing the redirect after login option is that the following use case relies on it and is working correctly:
1) User accessed content-protected page
2) User is requested to login
3) User logs in on the protected page
4) User is shown content which was previously protected (i.e. is not redirected)
Is there any ability to add an attribute to the login short code to implement a redirect after login for that specific short code instance (rather than globally)? Something like the following would be absolutely ideal:
[wp_eMember_login redirectURL="http://mywebaddress.com"]
Where the login form would redirect to the value specified in the redirectURL attribute on a successful login.
A similar approach is implemented in the "Shortcode Exec PHP" Plugin at: http://blog.bokhorst.biz/3626/computers-and-internet/wordpress-plugin-shortcode-exec-php/
Any thoughts? Would value some guidance on this one.
Many thanks, Matt