Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
template: Output of the User name - get_page_usr()?
#5
Carlos Wrote: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'); ?>">
Wow! Very thank you! This is the second time you gave just the right code I was searching for!
Your support is very good. This functions would be useful for the Wiki?
Advanced HTML5 & CSS3 coder. Simple JS & PHP hacker (not enough for new function coding). Build one webpage with GS (late 2012). Focusing on Theme customizing/Template files. Experience with WP.
Reply


Messages In This Thread
template: Output of the User name - get_page_usr()? - by ChriS - 2012-02-26, 09:58:03



Users browsing this thread: 1 Guest(s)