Meta Tags Plugin

Download:
Download version 2.6.

If you find this plugin useful please donate to the author.

This plugin adds functionality to provide meta tag data for your HTML headers and Technorati Tags to your footers. Set what tags to include and other options on the configuration page.

Revision History:

version 1.0 Original Release
version 1.1 Bug Fixes
version 1.2 Added Technorati Tags
version 1.3 Added post overrides for Keywords and Robots
version 2.0 Changed to using class structure. Also added signature idea from Rich Boakes
version 2.1 Fixes to make compatible with Wordpress 2.0
version 2.2 Created function to read current post to determine the keywords
version 2.3 Added ability to add other HTML Metatags to post using custom field data
version 2.4 Made plugin identifier functions universal for all plugins
version 2.5 Added functions to stub to identify current available release. Adjusted options page to display. Fixed missing __CLASS__ constant for versions of PHP older than 4.3.0. Fixed issue with PHP5 installs.
version 2.6 Fixed version notification.

Installation:

  1. Copy the directory rjs-metatags and all it’s contents to the WordPress plugins directory on your server, (%WORDPRESS PATH%/wp-contents/plugins/).
  2. You will then need to activate the plugin from the WordPress administration plugins page.
  3. Adjust the options as necessary.
    Meta Tags Plugin Configuration Screen

Usage:

  1. As long as your template properly includes function calls to wp_head() in the header.php file and wp_footer() in the footer.php file the correct tags will be added.
  2. One note to be aware of; if your template includes meta tags such as “generator”, “description”, and “Content-Type” including these in your options will cause duplication. One way to avoid this and make your template compatible is to put a if block around these tags.

    Example:

    <?php if (!is_callable('MetaTags', 'html_tags')) { ?>
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" />
    <meta name="description" content="<?php bloginfo('description'); ?>" />
    <?php } ?>
  3. Both the Keywords and Robots settings can be overridden for each post individually. To do this you just add a Meta Key/Value combination for the post with the Key being either “Keywords” or “Robots” and the value you want put into the meta tags for that page.
  4. You can add a metatag by placing one or more custom fields Meta Key/Value combination for the post with the Key being “HTML Meta”. The text in the value should be a full meta tag text.
    Possible useful Hack: Use this to add any text to the Head section of a posts page.
  5. When displaying a single post, if no post meta key/value pair is setup for keywords the plugin will analyze the post content and determine a set of keywords. For pages containing multiple posts the default will be used.
  6. By default the Technorati Tags are hidden in the footer (once enabled in the options page.) If however you wish to include them else were on your page, such as in the sidebar, you can add the following to your template file:
    <?php
    if (is_callable('MetaTags', 'technorati_tags')) {
    MetaTags::technorati_tags(true);
    }
    ?>

    The technorati_tags method has a single parameter $visible.

    $visible An optional parameter defaulted to false. This controls whether the
    tag includes the visibility:hidden style attribute.

Credits:

Rick Boakes I got several ideas from his AutoMeta plugin as well as the exclusion list files.

2 Comments

  1. beos Comment posted Thursday, October 5, 2006:

    tested on both 2.0.3 and 2.0.4 and latest SVN Get some error ://

    Fatal error: Cannot re-assign $this in rjs-metatags.php on line 117

  2. Rodney Comment posted Thursday, October 5, 2006:

    The problem is a result of an incompatability with PHP5 I had fixed this but not uploaded the fix to the site sorry. I have put version 2.5 up now.

Leave a comment

 
Rodney's 404 Handler Plugin plugged in.
Rodney's Adsense-Deluxe Add ons plugged in.
Rodney's Bread Crumbs plugged in.
Rodney's Edupage Email Import plugged in.
Rodney's Hierarchy for shupe.ca plugged in.
Rodney's Meta Tags plugged in.
Rodney's Most Recent plugged in.
Rodney's Permalink Override plugged in.
Rodney's Widget for the FAlbum. plugged in.
Using Yaletown Theme for Wordpress.