Article author

From Photostand Wiki

Jump to: navigation, search
article_author()

The article_author function will return the article author. The author name is the username you used to post the article.

This function is used to display the author username when there's more than one writer.

Parameters

This function has no parameters.

Examples

Displaying author username

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
    <head>

	<title>Article</title>

    </head>
    <body>

        <div>
            <h2><?php echo article_title(); ?></h2>
            <h5>By <?php echo article_author(); ?></h5>
        </div>

    </body>
</html>

Basicly, this is going to display "By Username".

Personal tools