Syntax Help: Include a "Nickname".php file based on Post author in real time? (2 posts)

  1. syedabbas
    Posted 7 years ago #

    I want to display author information on top of single post. Instead of using a plugin which calls database for information I created one php page for each author with static information about the Author and placed it in theme root.

    I am using the following code to call and include the static .php file based on the authors nickname.

    <?php include(TEMPLATEPATH."/the_author_nickname().php"); ?>

    As you can see I am clearly not good at it.. just trying to learn and do something here.

    Would using a .html instead of a .php save some more processing time?

  2. syedabbas
    Posted 7 years ago #

    Did I put it under the wrong topic by any chance?

Topic Closed

This topic has been closed to new replies.

About this Topic