How can I determine in the wordpress hooking if the page is homepage?
for example in my _functions.php
function hook_premiumpress_page_before(){
if (homepage){
echo "<h1>This is Home Page</h1>";
}
}
I don’t know the syntax code about it.
Any help will be appreciated, thanks in advance …
http://codex.wordpress.org/is_front_page
http://codex.wordpress.org/is_home
Also you could make a
front-page.phpor ahome.phpTemplate logic