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

Answer by Nicolas Guérinet for When to use is_home() vs is_front_page()?

You visit a frontpage that is a blog homepage => is_front_page() = TRUE&& is_home() = TRUEYou visit a front page that is a static page => is_front_page() = TRUE&& is_home() =...

View Article


Answer by Dylan Pierce for When to use is_home() vs is_front_page()?

I've discovered that is_home() and is_front_page() don't deliver what's expected for multisites. My workaround using built in PHP goodies:if($_SERVER['REQUEST_URI'] == '/') { // you must be on the home...

View Article


Answer by Momekh for When to use is_home() vs is_front_page()?

You'd want to use is_home() when you want to check if the user is viewing your list of blog posts (usually set to display 10 posts per page). If you have a home.php file in your theme, that will be...

View Article

Answer by Scott for When to use is_home() vs is_front_page()?

is_front_page() returns true if the user is on the page or page of posts that is set to the front page on Settings->Reading->Your homepage displaysSo if you set about us as the front page then...

View Article

When to use is_home() vs is_front_page()?

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...

View Article

Browsing all 5 articles
Browse latest View live


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