Hello,
Is it normal that the is_home believe that Page Templates are the home page?
cause is_home display the code below in every Page Templates :
In the footer (i also try is_frontpage):
<?php if ( is_home() ) { ?>
my code
<?php } ?>
Thanks for any idea.
If the page you're looking at is set to be the home page, then yes. Otherwise, no.
In the footer
you may have used custom queries in you main section, which could have distorted the original query string and the idea of 'home' -
try to add wp_reset_query(); before your if ( is_home() ) ..
try to add wp_reset_query(); before your if ( is_home() ) ..
Magic :o , it work, if possible can you explain more, what that code do exactly?
thanks.