Site logo

Archived topic

is_front_page and is_home are not working

2 replies · Started by sirlouen on June 17, 2019

Viewing posts 1–3 of 3

For some strange reason I've found that is_front_page and is_home functions are not properly responding in my site

In case you want to test it, I've placed a text in the top that shows the result

/noticias/ -> Blog page
/ -> Home page

Technically the /noticias/ should put the is_home to true and the / the is_front_page to true

I've also tried to put the function wp_reset_query(); before those two:

wp_reset_query();
echo("Is Front Page: ");
var_dump(is_front_page());
echo(" - Is Home: ");
var_dump(is_home());

What can be happening?

Glad you've figured out :)

This archived topic is closed to new replies.