• I have a problem. First I have this:
    <?php include (TEMPLATEPATH . '/text.php'); ?>

    Then I have this:
    <?php echo $curauth->first_name; ?>-<?php echo $curauth->last_name; ?>

    I want to call for an include file that uses an authors name — a different file that will be called for each author. For instance: Lars-Henderson.php if the author is LH and so on.

    So how would that be done? I want this:

    include templatepath /firstname-lastname.php using the curauth variable.

    Please help.

  • The topic ‘Using the variable curauth in an include file’ is closed to new replies.