Our Blog

From code to wordpress hacks, marketing insights to blatant self promotion

Filtering results on an archive or taxonomy page with pre_get_posts

We came across an interesting code challenge when building a site recently. What we needed was to change the order of posts on our archive & taxonomy pages based on different post types. By default archive & taxonomy pages output the results in post date order (when the post was created), usually newest first just like…

Read More...