Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'd like to create multiple user profiles are unique, without just using a "if/then/else" php statement on the author.php template? All I need is the ability to create two different types of profiles.

share|improve this question
    
How do you want to identify the different types of profiles? By user level, or something else? –  EAMann Feb 29 '12 at 5:34
add comment

1 Answer

You could register a user_meta field (probably a dropdown) and use that to select templates. You will still need to use if statements to differentiate the templates, but you're going to need that regardless of the route you take. If you use get_template_part() you can split out the actual html and such of it and just handle the logic in author.php

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.