Plugins wordpress

diapo internet > Blog > Plugins wordpress > WP Original source plugin

19/11/2010 diapo7 Commentaires

WordPress plugin for the new Google original source meta tag

Publishers can now use metatag to help Google determine which URL(s) should be considered the original version of an article:  « Original-source » meta tag. (see Google News help for publishers)

This plugin will add a meta box to your « add new » post and page to add up to 5 Original sources URLs.

original source plugin

By adding URLs, the plugin will automatically add « original source » metag tag to your posts and pages header.

original source plugin

If you publish an article that consists entirely of original reporting, do nothing and just let the plugin add your URL (permalink) as the original-source.

Download Zip file > link to WordPress.org :

zip

Installation

1. Download, unzip and upload to your WordPress plugins directory
2. activate the plugin within you WordPress Administration
3. Add original sources URLs in the box that appears in « add new » pages and posts
4. Done, you are now a wordpress expert ;) !

Compatibility

Require wp_head() in header.php
Wordpress 3.0.1

| wordpress:

twitter  < Partager cet article | Lien court > error  

Avis: 7 commentaires

  1. Kurby

    Just works like a charm, thanks.

    avis
  2. Marc

    Merci, c’est exactement ce qu’il me fallait pour tester. Si j’ai compris cela ajoute la balise uniquement aux articles et aux pages, pas aux catégories et aux tags ?

    avis
    • diapo

      Exact Marc, parce que les tags et catégories ne contiennent pas généralement de contenu unique, mais les articles et pages si ;)

      avis
  3. Hello

    Absolutely perfect – thanks

    avis
  4. Is there such a module for Drupal Sites?

    avis
    • diapo

      Armen our team is developping WP plugins only. For Drupal the easiest way to add metatags is probably to automatically search your post content for outbounds links with something like that in a php function:

      $oblink  = '/(<a\s*'; // Start
      $oblink .= '(.*?)\s*'; // Any attributes or spaces
      $oblink .= 'href=[\'"]+?\s*(?P<link>\S+)\s*[\'"]+?'; // Grab the link
      $oblink .= '\s*(.*?)\s*>\s*'; // before closing tag
      $oblink .= '(?P<name>\S+)'; // Grab the name
      $oblink .= '\s*<\/a>)/i'; // closing anchor tag
      

      and add them to the header by a function call.

      avis
  5. Thanks for a great plugin!
    An option to include the source at the bottom of the post as a link a’la engadget.com would be excellent :)

    avis
Laisser un commentaire