There’s a specific category on my website that should be restricted to teachers only using login.
However, I don’t want to hassle the teachers with the not so welcoming admin WordPress offers.
I would like to offer a “lightbox” that’s basically a login that doesn’t automatically forward to the admin, but only makes the teachers category content available.
Do you know any plugin that allows that?
Thanks,
Sarit
Leave a Reply
You must be logged in to post a comment.
Don’t know about a plugin that does that for you but you can use the WordPress native Thickbox:
First include the Thickbox script and style in your category only if the user is not logged in (simply copy/paste in your theme’s functions.php file)
Then open up your category.php (or archive.php depending on your theme , or even better is a custom file for that category
category-id.php
) and add this code before the loop: