Hi,
I am also struggling on this.
If i give it in admin side shortcode working.But i need to give from URL dynamically
Example:
User should not comment without login.so now i need to give login page link.after loggedin user should be redirect to appropriate post detail page.so that i need to give post-slug to redirect the same page again.
the below given link is default wordpress login URL.in the same way i tried.but not working.
https://www.example.com/wp-login.php?redirect_to=http%3A%2F%2Fwww.example.com%2Fblog-post-by-contributor%2F
can u help me?
Thanks in advance