WP Query Posts or Pages By Category

Discussion for the recipe: https://wp-dev-recipes.serversideup.net/wp-queries/query-by-category