Hey,
I am using the [s2If is_user_not_logged_in()] shortcode on 2 of my pages which require a login. This shortcode is around a login and registration form. After the shortcode is closed the normal content gets displayed (when the user is logged in).
Now what I want to accomplish is that after registration, the user gets automatically logged in and redirected to the current url he is already on (which works already thanks to the well documented s2member). For ‘redirect_to_automatic’ I filled in get_permalink(), which also kinda works, it basically refreshes the page. But the problem is it still displays the content between the [s2If is_user_not_logged_in()] shortcode, but this time with the login form gone (shows edit profile and the other stuff). If I refresh again, my browser asks me if I want to resubmit the form, then the content for logged in users is displayed. So basically it needs another refresh to notice that the user is actually logged in already.
I was wondering if there is a better solution to this. The registration form currently has no success url, as this is set my the s2-auto-login.php to the current url as described above.
Cheers