alleyinteractive / homepages

0 stars 1 forks source link

Add support for static home page setups #8

Closed joemcgill closed 3 years ago

joemcgill commented 3 years ago

This allows you to use this plugin with a WordPress setup where you've set your site to a static homepage, which allows you to select a page for displaying your main posts archive, i.e. the blog page.

Adds a new method: Homepages\is_front_page() to test whether the current wp_query object should be treated like a front page query and updates the update_is_home_conditional method to only set is_home to true when the site is configured to show the latest posts on the front page.