Adding hreflang tags automatically in WordPress subdirectory multisite

Alternatively we can set the hreflang as a site meta for each site: update_site_meta( 1, ‘hreflang’, ‘x-default’ ); update_site_meta( 3, ‘hreflang’, ‘en-au’ ); update_site_meta( 5, ‘hreflang’, ‘en-gb’ ); and then for the hreflang attribute use; get_site_meta( $site->blog_id, ‘hreflang’ ) and for the href attribute: get_home_url( $site->blog_id, $page_path ) If we want to skip the site … Read more

Sitewide category terms

global_terms is not only deprecated, it was never fully functional, and all it did was assign the same category id to identical terms. It didn’t do what you want. While you can create the same categories on all blogs at the time of creation using something like this plugin: http://wordpress.org/extend/plugins/wpmu-new-blog-defaults/ the part about making it … Read more

Images don’t show up

Finally, I’ve got it! Sniffing the HTTP resonses indicated that a few extra bytes were being inserted between the headers and body of the http response, resulting in bad image data. Further investigation revealed that these characters represent a Unicode Byte Order Mark (BOM). These, in turn, were caused by a Windows editor that saved … Read more