Archives: Snippets

Loop Through CPTs + Group by Custom Taxonomy Terms

This snippet creates a custom WordPress loop of custom post types that are grouped by taxonomy term. The taxonomy term name is output before the set of posts within that taxonomy term. I’ve used this on a custom page template.  

Display a YouTube Thumbnail from URL

The below snippet outputs an image that is 480×360. See below for other image sizes available. Replace ‘hqdefault.jpg’ with one of the other file names. YouTube Thumbnail Sizes Now are you inspired to get into alignment and start manifesting some awesome stuff?

Scroll to Top