Quantcast
Channel: When to use is_home() vs is_front_page()? - WordPress Development Stack Exchange
Viewing all articles
Browse latest Browse all 5

When to use is_home() vs is_front_page()?

$
0
0

I've found that is_front_page appears to return true when I'm viewing the home page and have a single sticky post assigned there.

It also returns true when I've assigned a page as the static front page via Settings > Reading.

Why would I ever want to use is_home()?


Viewing all articles
Browse latest Browse all 5

Trending Articles





<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>