I am working on my first WordPress theme using underscores, I have already added the ‘featured post’ code in the functions. Php and called it from the ‘loop’ in the ‘single. Php. But I ended up getting featured images only when I view a post, and not on the homepage, I will appreciate if someone can help me with this. Thanks!
This is in my functions.php file