Let’s See the Differences
Lab: is_front_page() vs is_home() Showdown
Video Runtime: 06:01
Let’s see the difference. You will explore what the different states are based on the settings in Settings > Reading
. You will also learn the intent of these functions.
The Posts Page is always going to set the is_home()
to true
. However, is_front_page
state is determined by which page is assigned to be the front page, i.e. a static page or the Posts Post. Let’s see how this works.
You Rock!
Excellent job! You now know the difference between is_front_page
and is_home
as well as which settings determine which conditional function is set. Way to Go!
Code. Eat. Code. Sleep. Dream about Code. Code.
Episodes
Total Lab Runtime: 00:07:21
- 1 Lab Introductionfree 01:20
- 2 Let's See the Differencesfree 06:01