Skip to content

Filtering the WordPress Custom Logo

WordPress 4.5 added the custom logo feature. It’s pretty nice, and where possible I try to use native WordPress functionality, but the default markup returned by get_custom_logo() isn’t always what I’m looking for. Fortunately there’s a filter included just for this.

A little function for oEmbed + ACF

We’ve been doing a lot of videos on our sites lately. Well, we’ve always done a lot of videos on our sites. The model is usually an on-page embed, either directly in page or via a modal, and we set the back-end up to use the oEmbed field in Advanced Custom Fields Pro. It gives … Continued

Function for Post Format Icons

/** * Output Post Format icons * * Outputs an icon for each post format. Set up to use Fontawesome, * but can be used with anything, or you can just use CSS. * * @return string */ function post_format_icon() { global $post; // get current post ID $id = $post->ID; // get post format … Continued