WordPress Basics: get recent featured images by category

Sometimes you want to have an image slider which not only contains the most recent images on your site but does so by category to ensure that all of the categories on your site are included: First get the categories: [code lang=”php”]$categories=get_categories();[/code] By default this┬áreturns the categories in alphabetical order and ignores any empty ones. […]