Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
output parent's name but not "index"
#1
what would be the correct condition to echo the sitename when parent = "index"

get_parent(); echoes "index" in subpages of homepage

but in that case I do want the sitename ;=(
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
#2
try with:
Code:
<?php if (get_parent(FALSE) == "index") {
  get_site_name();
}
?>
Addons: blue business theme, Online Visitors, Notepad
Reply
#3
yojoe Wrote:try with:
Code:
<?php if (get_parent(FALSE) == "index") {
  get_site_name();
}
?>

thanks, I will try that, I think I did not test with parameter "false"

cheers, Connie
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply




Users browsing this thread: 1 Guest(s)