{"id":5244,"date":"2010-08-08T10:17:42","date_gmt":"2010-08-08T15:17:42","guid":{"rendered":"http:\/\/www.allyngibson.net\/?p=5244"},"modified":"2010-08-08T10:17:42","modified_gmt":"2010-08-08T15:17:42","slug":"on-wordpress-plug-ins-and-wordpress-com-tags","status":"publish","type":"post","link":"http:\/\/www.allyngibson.com\/?p=5244","title":{"rendered":"On WordPress Plug-Ins and WordPress.Com Tags"},"content":{"rendered":"<p>On occasion, I can be a stat fiend.  I used to write analyses each month of what people were looking for on my website, but eventually I lost interest.  Not in looking at the stats &mdash; the information was interesting to <i>me<\/i> &mdash; but in sharing it with others &mdash; I&#8217;m not sure that it was helpful to <i>anyone<\/i> other than myself.<\/p>\n<p>WordPress provides some basic real-time stats tools, which is how I know that just today seven people have looked at <a href=\"http:\/\/www.allyngibson.com\/?p=2632\">this post written in the NATO Phoentic Alphabet<\/a> and one person was looking for information on <a href=\"http:\/\/www.allyngibson.com\/?p=969\">the Norse roots of Ash Wednesday<\/a>.<\/p>\n<p>One mildly depressing thing about using WordPress&#8217; stats tools &mdash; which go through the WordPress.com servers &mdash; is that I can see all the cool things going on in the WordPress.com world.  They have a <i>community<\/i>; why, just this week, WP.com rolled out a <a href=\"http:\/\/en.blog.wordpress.com\/2010\/08\/03\/like-a-post\/\">Facebook-like &#8220;Like&#8221; feature<\/a> on posts.  Using the self-hosted WordPress.org software, I don&#8217;t get some of these cool toys to play with.<\/p>\n<p>Honestly, though, it&#8217;s not a big deal.  Some things, like Twitter integration, can be done on a self-hosted WordPress website through plug-ins &mdash; and done <i>better<\/i> because I have control over which plug-in I want to use.<\/p>\n<p>As an example, I presently use <a href=\"http:\/\/wordpress.org\/extend\/plugins\/twitter-tools\/\">Twitter Tools<\/a>, which is automatic and archives my Tweets as blog posts, but it doesn&#8217;t give me control over the Tweet that announces a blog post.  I&#8217;d rather use <a href=\"http:\/\/wordpress.org\/extend\/plugins\/wp-to-twitter\/\">WP to Twitter<\/a> to handle the post to Twitter, as it does allow flexibility in the Tweet, but I found that the two plugins do not play together at all.<\/p>\n<p>That&#8217;s beside the point here, however. \ud83d\ude09<\/p>\n<p>One thing I like about WordPress.com (and I&#8217;m jealous of, frankly) is that blogs on the service are linked to each other through the tags used by the writers of various posts.  If someone writes a post on, say, The Leisure Society (pulled at random, because their CD is on my desk here), then that post will be linked to other blogs <i>also<\/i> writing about The Leisure Society.  There was a WordPress plug-in <i>way<\/i> back in early days called &#8220;Blogs of the Day&#8221; that did something similar and allowed WordPress.org blogs to be linked to other, related blogs automatically, but there&#8217;s nothing now that does that.<\/p>\n<p>This morning, I pulled out some code that I&#8217;d started to tinker with a few years ago to generate links to the WordPress.com tag pages, based on the tags that a WordPress.org user uses in their posts.  It wasn&#8217;t difficult; I used the tag routine from the WordPress category-template.php file and made a few edits; rather than link to the blog internally, the routine links to wordpress.com.<\/p>\n<p>It works exactly like WordPress&#8217; native the_tags() php function and takes the same arguments because it uses the same code under the hood.  Just change the_tags to wpcom_tags, and you&#8217;re set.  For my own blog at the moment, I&#8217;m using the following routine in my sidebar to generate a link list to the WordPress.com tag pages:<br \/>\n<code><br \/>\n&lt;?php if (function_exists('wpcom_tags')) : ?&gt;<br \/>\n&lt;div class=\"post-meta\"&gt;<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&lt;h4&gt;On WordPress.Com&lt;\/h4&gt;<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&lt;?php wpcom_tags('&lt;ul class=\"tags\"&gt;&lt;li&gt;','&lt;\/li&gt;&lt;li&gt;','&lt;\/li&gt;&lt;\/ul&gt;'); ?&gt;<br \/>\n&lt;\/div&gt;<br \/>\n&lt;?php endif; ?&gt;<br \/>\n<\/code><\/p>\n<p>I make no promises of utility, but someone, somewhere may find it handy to have their WordPress.org blog linked to the WordPress.com tag archive pages, and to that end I offer <a href=\"http:\/\/www.allyngibson.com\/wpcom-tags.zip\">the <b>wpcom-tags<\/b> plug-in<\/a> for download.<\/p>\n<p>It&#8217;s not the most useful &mdash; nor the most flashy, nor fun like <a href=\"http:\/\/www.allyngibson.com\/?page_id=974\">Shire Reckoning<\/a> &mdash; plug-in in the world, but what it does it does without fuss, and that&#8217;s maybe all we can ask of it. \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>On occasion, I can be a stat fiend. I used to write analyses each month of what people were looking for on my website, but eventually I lost interest. Not in looking at the stats &mdash; the information was interesting to me &mdash; but in sharing it with others &mdash; I&#8217;m not sure that it<a class=\"more-link\" href=\"http:\/\/www.allyngibson.com\/?p=5244\">Continue reading <span class=\"screen-reader-text\">&#8220;On WordPress Plug-Ins and WordPress.Com Tags&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4095],"tags":[58,759,470,4096],"class_list":["post-5244","post","type-post","status-publish","format-standard","hentry","category-wordpress","tag-php","tag-plugin","tag-tags","tag-wordpress","entry"],"_links":{"self":[{"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=\/wp\/v2\/posts\/5244","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5244"}],"version-history":[{"count":0,"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=\/wp\/v2\/posts\/5244\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5244"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5244"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5244"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}