Currently reading: Holly by Stephen King

Get the WordPress document title with less work (maybe)

Reusable hero or banner partials often require more robust title-sniffing operations given to their placement inside or outside of The Loop™. In these, a simple the_title() call sometimes won't suffice, so you'll have to figure out what kind of view you're looking at and adjust the title accordingly.

Keep on readin' on Get the WordPress document title with less work (maybe)

Move your WordPress theme's templates into a subdirectory

Building on our (mostly unnecessary) add_filters() function to attach a callback to multiple hooks at once, we can adjust how WP's template hierarchy works. Yes, page-specific templates could already go in a `page-templates` directory, but this hook lets all of your templates go into a directory of your choosing.

Keep on readin' on Move your WordPress theme's templates into a subdirectory