is there a way to redirect the user after they had submit a post to where he came from?
like Go back only automatic.
cheers wp-crowd
is there a way to redirect the user after they had submit a post to where he came from?
like Go back only automatic.
cheers wp-crowd
Yes you could.
If you use the Text widget to add a new field to the form that contains the URL they came from. The Text widget can execute PHP so you can grab it from $_SERVER['HTTP_REFERER'].
Then use an Append to content widget to store it in a Custom Field on the post. (Also supports php).
Then in "messages" for the form, modify the message for thanking the user for submitting a post with some javascript that redirects to the contents of the custom field (again you can use PHP in any of the customisable/hackable messages).
holaaaa, thank you - i try my best ;)
You must log in to post.