Skip Navigation

[Resolved] Avoid redirect to backend after logging in

This support ticket is created 5 years, 9 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.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

Author
Posts
#1218856

Tell us what you are trying to do?
I am trying to get a specific group of users to approve new entries (submitted through 'create' form) on the front-end (through 'edit' form). They should never be redirected to the backend.

What's happening instead:
I have been working on a front-end system including:
- a ‘create’ form = a submission form visible to any one on the site that allows to create new entries of a custom content type.
- an ‘edit’ form accessible only to specific users so that they can edit and actually approve new entries submitted through the ‘create’ form (entries appear as pending until they are approved).

Those users who will approve the new entries are not familiar with the WordPress background and I would like to avoid for them to have to do anything there; hence the front-end ‘edit’ form.

I have added a WP login box so that they can log in and see the ‘edit’ button. My problem is that when a user log in, they are redirected by default to the backend…

What I need is for them to stay on the page where they are after logging in. Is that possible at all?

Is there any documentation that you are following?
https://toolset.com/documentation/getting-started-with-toolset/publish-content-from-the-front-end/forms-for-creating-content/
https://toolset.com/documentation/getting-started-with-toolset/publish-content-from-the-front-end/forms-for-editing/

Is there a similar example that we can see?

What is the link to your site?
This is the page where the 'view' is available:
hidden link

#1219124

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Stefanie

Are you using the regular WordPress login page or a custom login page made with Toolset?

As you can see from the wpv-login-form shortcode attributes, you can specify a page to redirect to when a user logs in (e.g. to some front-end page).

That wouldn't stop them directly accessing the /wp-admin/ page though.

Toolset doesn't include any feature to limit access to the back end.

There are other plugins that do, or you can add a little PHP code to achieve the same. There are quite a few tutorials online. Here is an example: hidden link

#1219511

My issue is resolved now. Thank you!