loginlogout for only one page

I have a site that is visible to the public except for one page. Therefore, I have turned off the admin bar completely a

I have a site that is visible to the public except for one page. Therefore, I have turned off the admin bar completely and I'm not using any widgets or sidebar. The admin has to type the full URL to get into the admin section.

The one page in question requires login/logout only for that page, not for Wordpress in general. The only one who has access to their profile is the admin. Setting page visibility to password-protected is not an option. I need unique user ids and passwords.

When selecting the page from the main menu, the user will be asked for username and password. A successful login will display the contents without a redirect as well as a logout link.

I've searched this site, as well as many others, but haven't found any answers. And none of the plugins do this. Does anyone out there have any ideas?

Thanks!

Update: I just found the Remove Dashboard Access plugin. So that takes care of one thing. Now I just need to figure out how to do the login form without a redirect.

I have a site that is visible to the public except for one page. Therefore, I have turned off the admin bar completely and I'm not using any widgets or sidebar. The admin has to type the full URL to get into the admin section.

The one page in question requires login/logout only for that page, not for Wordpress in general. The only one who has access to their profile is the admin. Setting page visibility to password-protected is not an option. I need unique user ids and passwords.

When selecting the page from the main menu, the user will be asked for username and password. A successful login will display the contents without a redirect as well as a logout link.

I've searched this site, as well as many others, but haven't found any answers. And none of the plugins do this. Does anyone out there have any ideas?

Thanks!

Update: I just found the Remove Dashboard Access plugin. So that takes care of one thing. Now I just need to figure out how to do the login form without a redirect.

Share Improve this question edited Dec 10, 2014 at 20:32 user64645 asked Dec 10, 2014 at 20:11 user64645user64645 11 bronze badge
Add a comment  | 

1 Answer 1

Reset to default 1

You can use wp_login_form() to display the login form anywhere. You could hook into the the_content filter to replace the content of the page with the form when they're not logged in.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744884156a4599018.html

相关推荐

  • loginlogout for only one page

    I have a site that is visible to the public except for one page. Therefore, I have turned off the admin bar completely a

    1天前
    30

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信