Custom Post Types (Changing post style based on category) October 13, 2022 by Tarik Billa You’re missing the endwhile Maybe you didn’t copy/paste it in, but if it’s not in your file you’ll want to add it.