Forums

Separate template based on the user role of the profile, not of the user. (2 posts)

  1. jj@jjmancini.com
    Member
    Posted 3 years ago #

    Hey everyone!

    Here is what I need to do. I want to have a separate template for the author.php page for all users who have a role of author. Because I already have a customized author.php page for normal users.

    So if the profile of the page that is loading, is that of an author, to use another template.

    I found this:
    http://wordpress.org/support/topic/158732?replies=10#post-699677
    But it for just listing the user role. Any ideas?

    Any help would be greatly appreciated!!!!
    J.J.
    FreshApps.com

  2. zyrq
    Member
    Posted 3 years ago #

    based on the link you provided, couldn't you just use an include in the author.php and put the details in the included file.
    if is normal user: include normal.php

    <?php include (TEMPLATEPATH . '/normal.php'); ?>

    if is author: include someother.php

    etc.

Topic Closed

This topic has been closed to new replies.

About this Topic