Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Display content by page URI?
#6
It’s bad to check for the index by path, especially if you want to share your theme. This is a much better way to check:
Code:
if (return_page_slug()=='index') {
   // This is the homepage.
} else {
   // This is a different page.
}
“Don’t forget the important ˚ (not °) on the a,” says the Unicode lover.
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!
Reply


Messages In This Thread
Display content by page URI? - by brumbino - 2010-01-15, 13:59:08
Display content by page URI? - by brumbino - 2010-01-15, 14:00:42
Display content by page URI? - by brumbino - 2010-01-15, 14:05:11
Display content by page URI? - by internet54 - 2010-01-15, 14:15:05
Display content by page URI? - by brumbino - 2010-01-15, 14:27:00
Display content by page URI? - by Zegnåt - 2010-01-15, 16:35:39
Display content by page URI? - by Nijikokun - 2010-01-15, 17:01:35



Users browsing this thread: 1 Guest(s)