How do I move the page title (H1) to header.php (outside of the loop) in a WordPress theme?
I know I can do a bunch of if statements and just make sure I cover every scenario, but that seems messy, surely there’s a cleaner and more future proof option? Nope! It is a bit messy. Unfortunately there’s no single function for outputting a title for all page types. There’s essentially 4 ‘types’ of … Read more