Template Part Shortcode and Carolyn Google Analytics WordPress Plugins

I’ve released a couple more plugins to the WordPress plugin directory. They are the result of day-to-day maintenance on a variety of WordPress sites.

Template Part Shortcode

Template parts are reusable snippets of code stored in your theme directory. Normally, they are called by other template files using the get_template_part() function. This plugin creates a shortcode for calling template parts from the body of a post.

Shortcode usage is: [template part=”somepart”].

Template parts must be stored in a “parts” folder within your theme directory.

Get the plugin from the WordPress plugin directory.
Follow on GitHub.

Carolyn Google Analytics

This is a plugin for embedding a Google Analytics (GA) tracking code in your site. It has two features:

  • It stores the GA code as a site setting. This means no modifying theme files, which is especially useful in a Multisite context;
  • The GA code is NOT inserted for logged-in users, meaning you won’t run up your visitor counts as you administer your site;

And that’s it! It works with Google’s “Asynchronous” tracking code, which goes in the page’s head.

Get the plugin from the WordPress plugin directory.
Follow on GitHub.

Posted November 2012

Made under the ☀ in Austin, Texas.
WordPress hosting by WP Engine, thanks y’all!

© 2022 Spellerberg Associates LLC