Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

Creating a login with PHP or using a WordPress plugin

Scenario:

A local newspaper wants a WordPress backed website built so that newspaper subscribers can login to read a full story online. While I feel this is a bad experience, its what the customer wants as a business requirement.

Problem:

Is there a good plugin to handle such functionality or should this be something that is built from scratch using PHP?

If plugin: what are plugins that I should look at?

If built from scratch: what are some good resources to learn to build such a login?

2 Answers

I found what I was looking for using the WordPress Codex. The login info can be found here: http://codex.wordpress.org/Function_Reference/is_user_logged_in

Zac Gordon
STAFF
Zac Gordon
Treehouse Guest Teacher

There are some login plugins that give you shortcodes you can embed in a page and then control where people are taken once they login so they don't see the backend of WordPress either. Try some of these perhaps