Skip Navigation

[Resolved] How to redirect from a CRED (new)USER form to the appropriate Cred POST form

This thread is resolved. Here is a description of the problem and solution.

How to set referrer using CRED forms.

To set referrer using CRED form it will require custom programming.

You can find proposed solution with the following reply:

Relevant Documentation:
More info:

This support ticket is created 7 years, 5 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)



I can follow the basic tutorials for creating functional Cred USER forms, and Cred POST forms, and my question concerns how to link the two, to make the "flow" more logical for users.

Here's the scenario - a user can submit various types of content, and there are separate Cred POST forms to create these new custom posts.
But, Access to those forms is restricted to logged in users only, and people who are not signed are redirected to the registration/Login page.

My query is - once people have signed in, or created their account via the Cred USER form, how can I redirect people back to the appropriate Cred POST form that they originally clicked on?
I want to maintain the "flow" of what they were trying to do, rather than just sending everybody back to the same "thanks" page, and then hoping that they find their way back to the action they wanted to take.




Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Yes - it's possible but you need to write some custom code.

With WordPress you get get referer URL using function: wp_get_referer()

=> Store the original referer to session
=> use referer stored in session to redirect user when he login/register

More info:

However, this will need custom programming and for your custom programming need, please feel free to contact our certified partners.


Hi Minesh

Thanks for your advice.

I was searching through the forum and even though it's really hard to find relevant past threads, I stumbled across this thread - would you agree that it's a good solution to this issue?
(I've not tried it yet)

thanks for your help 🙂



Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Yes - I think you may try that as well.

It should work as shown in the post you shared with me.


Thanks Minesh. Might as well close this one.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.