Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
template: Output of the User name - get_page_usr()?
#7
yojoe Wrote:If Carlos solution won't be sufficient, place below code in functions.php file (same directory as template.php) and call it function from template ...
Both functions of Carlos work for me, but thank you yojoe! Your solution shows a nice way of customizing the output for a theme and a more secure way of echoing user. I use now the folowing code in the theme file:
Code:
<meta name="author" content="<?php echo stripslashes(html_entity_decode($data_index->user, ENT_QUOTES, 'UTF-8') ); ?>">
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, 10:08:23



Users browsing this thread: 1 Guest(s)