I'm trying to create a login form for page My Account, but the form doesn't show like I expected. Instead, it shows the login form of WordPress. I attached some photos what I've done. You can access giaodichkynghi.vn and click the avatar icon on right above the site.
Is there any documentation that you are following?
Thank you for contacting us and I'd be happy to assist.
If you've followed the steps suggested in the documentation link and it is still showing the default login form from WordPress, it could be forced by any third-party plugin.
To troubleshoot this, I'll suggest the following steps:
1. Please make sure that WordPress, active theme, and plugins are all updated to the latest versions.
2. It would be interesting to test this with all non-Toolset plugins disabled and a default theme like Twenty Twenty-One.
If it's fixed, you can start adding the disabled items, one by one, to narrow down to a possible conflicting one.
3. In case the issue still persists, I'll need to see how this custom login form is set up in the admin area.
Note: Your next reply will be private and making a complete backup copy is recommended before sharing the access details.
I checked the page 'Tài khoản' and it was not assigned the post group 'Người dùng đã đăng nhập'.
To make this work, I added the following changes:
1. From WP Admin -> Toolset -> Access Control -> Post Types, I enabled the option 'Managed by Access' for the 'Pages' post type.
( screenshot: hidden link )
2. Next, I opened the edit screen of the 'Tài khoản' and assigned the post group 'Người dùng đã đăng nhập' to it.
( screenshot: hidden link )
As a result, when a guest/non-logged-in user tries to view this page, the login form through the 'Mẫu đăng nhập' content template is shown.