Latest stories

WordPress tip: Show posts without any category or even custom term

W

Recently I needed to show posts that weren’t in any of the categories (for my custom archive page). It is a very common problem that you encounter when adding new custom post types to WordPress. I came up with this little WordPress tip: Let me explain what is going on. We are creating new WP_Query object and passing into its constructor several params (as array). First one is post_type...

Tags