2010-01-15, 16:35:39
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!
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!