Skip to content

Tips

Boosting engagement

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

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: [code lang=”php”] $postsWithoutCategories = new WP_Query(array( ‘post_type’ => ‘post’,… Read More »WordPress tip: Show posts without any category or even custom term