Skip to content

Instantly share code, notes, and snippets.

@farnscosnippet
Last active June 8, 2016 17:29
Show Gist options
  • Save farnscosnippet/7328120 to your computer and use it in GitHub Desktop.
Save farnscosnippet/7328120 to your computer and use it in GitHub Desktop.

Revisions

  1. indsnippet renamed this gist Jan 3, 2014. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. indsnippet created this gist Nov 5, 2013.
    9 changes: 9 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    <meta name="keywords" content="<?php if(is_single()) {
    $metatags = get_the_tags($post->ID);
    foreach ($metatags as $tagpost) {
    $mymetatag = apply_filters('the_tags',$tagpost->name);
    $keyword = utf8_decode($mymetatag); // Your filters...
    echo $keyword.",";
    }
    }
    ?>" />