ChriS Wrote:I'm looking for a method to output the user name in a theme file.
For example
The Template Tags Wiki and the Forum has no function documented for this. Is there one to use?Code:<meta name="author" content="(GS-PAGE-USR-HERE)">
There isn't a template tag for user/author right now. Meanwhile you can do it like this (GS 3.1):
Code:
<meta name="author" content="<?php echo $data_index->author; ?>">
Edit: there's another way (also with GS 3.1):
Code:
<meta name="author" content="<?php getPageField(return_page_slug(),'author'); ?>">