Corcel is a Laravel package that greatly simplifies pulling data from a WordPress database. Using it feels somewhat like—and at the same time completely different from—using WP_Query. One thing I—a rather inexperienced Laravel user—struggled a bit with, though, is fetching posts by Post Format. Here’s how it’s done. Continue reading WordPress Post Formats in Corcel →
While it is perfectly possible to disable caching for URLs that contain a query string, such routes may still get served a previously cached page. We need to not only prevent URLs containing a query string from being cached, but also prevent serving a cached page. Luckily, doing so is easy enough! Continue reading Fix Pagination when Using Laravel Page Cache →