Hi, How can I do a login link in wordpress amember error pages. I tried like %login and it didn't work. I am talking about on this page: http://www.amember.com/docs/Creating_Error_Messages Finally, i endup with a JS solution, but still wanted to know, if its possible: <script type="text/javascript"> function wp_am4_redirect(){ var currentURL = document.URL; window.location.href="http://somedomain.com/amember/login?amember_redirect_url="+encodeURIComponent(currentURL) } </script> Please <a href="javascript:wp_am4_redirect()">login</a> or register for <a href="http://somedomain.com/amember/signup/">Free Membership</a> to view this content. Now, i need to copy paste to all the error templates. Please do let me know, if there's any other better way of doing it. Thank you!
You are making this way too complicated. You can do this with simple HTML. Assuming aMember is installed in the amember directory: Code: http://yoursite.com/amember/login
Thank you for your response! Oops .. I missed to mention, the reason is I need to redirect back to the same post after they login and so I am passing the amredirect_url value via JS. If its just the login page, then no problem, I can just use the login link directly. Thank you!
PLM, What you are describing sounds like the default behavior of my WordPress/aMember test site. Take a look: http://www.screencast.com/t/uZqH5RME