How to Add Support for Display Advertising Code in Google Analytics for WordPress

It’s really simple to use Google’s Display Advertising code, so I thought I’d share how.

To enable the new GA features:

  1. Check the “Show Advanced Settings”
  2. Under “Advanced Settings,” check the checkbox for “Host ga.js locally:”
  3. In the text field that appears, enter: //stats.g.doubleclick.net/dc.js
    • Note: The missing http and https is intentional – if your site’s in secure mode, it will use https, otherwise http)
  4. Save your settings!

Add Custom Taxonomy Title Tags Support to All-In-One SEO Pack

Get control over your custom taxonomy’s Title Tag

With Yoast’s Simple Taxonomies plugin, you can set up a custom categorization system for posts on your site known as a custom taxonomy. When trying to optimize these pages, I realized that the All in One SEO Pack plugin doesn’t have support for custom taxonomies, so it will not format the title properly. I’ve slapped together some code to improve the formatting of the title tag. See this code in action. Continue reading “Add Custom Taxonomy Title Tags Support to All-In-One SEO Pack”

Simple Taxonomies Formatting — Improve the Plugin's Code Output

Making the Simple Taxonomies WordPress Plugin Semantic

I’ve been using Joost de Valk’s Simple Taxonomies plugin for a couple of projects, and I’ve been very disappointed by the formatting of the terms output code.

When configuring the plugin, you have the option of choosing “Add terms to the end of posts” or “Add terms to the end of excerpts.” If you do, you get a <div> and a couple of spans. Not very semantic. Also, the code uses an #id, instead of a .class, meaning that if you have more than one post on a page with taxonomies, it no longer validates.

Simple Taxonomies uses terms, so let’s make a list of them!

Here’s a way to reformat the code and prevent overwriting in future plugin updates. We’re going to strip the code and use a definition list instead (<dl>). Definition lists in HTML have a term and description; just as a custom taxonomies creates a taxonomy and its terms. Continue reading “Simple Taxonomies Formatting — Improve the Plugin's Code Output”