Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
template: Output of the User name - get_page_usr()?
#4
ChriS Wrote:I'm looking for a method to output the user name in a theme file.
For example
Code:
<meta name="author" content="(GS-PAGE-USR-HERE)">
The Template Tags Wiki and the Forum has no function documented for this. Is there one to use?

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'); ?>">
Reply


Messages In This Thread
template: Output of the User name - get_page_usr()? - by Carlos - 2012-02-26, 05:36:33



Users browsing this thread: 1 Guest(s)