How to get the excerpt for is_home() outside of the loop isn’t working
The $post global always holds the first post in the main query object before the loop (if nothing breaks it before that). On singular pages and static front pages, it will always be the same as the queried object. For all archives, the home page and the blog page, $post holds the first post in … Read more