There is a difference between the WordPress functions
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).
Keep It Simple, Stupid (KISS) - the best kiss you'll get in code.
Total Lab Runtime: 00:07:21
- 1 Lab Introductionfree 01:20
- 2 Let's See the Differencesfree 06:01
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.