Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
output <?php get_parent(); ?> without hyphen in template
#6
Using GS 3.1's new getPageField function:
Code:
<?php get_parent(0)!='' ? getPageField(get_parent(0),'title') : get_page_title();?>
displays parent title or current page title.
Reply


Messages In This Thread
output <?php get_parent(); ?> without hyphen in template - by Carlos - 2012-03-24, 03:52:05



Users browsing this thread: 1 Guest(s)