There is a difference between the WordPress functions is_front_page()
and is_home()
. The state of these functions is determined by how you (or your client) configures the site in the Settings > Reading
section (in the back-end). In this lab, you will see how different settings can cause a different set of states.
Unlocked & Open Preview
We’ve opened this lab up for everyone. Whether you’re a member or not, you can take this lab (all of it).
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
Interactive Guide
Check out the interactive guide that lets you click on the Settings > Reading
options. Then it tells you what conditionals are set as well as which template file WordPress is going to call for that configuration and specific web page. It’s your quick response to avoid confusion and be in the know.