<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Uncommon Content</title>
	<atom:link href="http://uncommoncontent.com/feed" rel="self" type="application/rss+xml" />
	<link>http://uncommoncontent.com</link>
	<description>Making WordPress work for you.</description>
	<lastBuildDate>Mon, 02 Apr 2012 15:02:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Display tweets from Ozh&#8217; Tweet Archiver using oEmbed</title>
		<link>http://uncommoncontent.com/2012/01/31/display-tweets-from-ozh-tweet-archiver-using-oembed</link>
		<comments>http://uncommoncontent.com/2012/01/31/display-tweets-from-ozh-tweet-archiver-using-oembed#comments</comments>
		<pubDate>Wed, 01 Feb 2012 02:24:55 +0000</pubDate>
		<dc:creator>Jennifer M. Dodd</dc:creator>
				<category><![CDATA[Gists]]></category>
		<category><![CDATA[archiver]]></category>
		<category><![CDATA[oembed]]></category>
		<category><![CDATA[ozh]]></category>
		<category><![CDATA[tweet]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://uncommoncontent.com/?p=8673</guid>
		<description><![CDATA[I use Ozh&#8217; Tweet Archiver to keep a local copy of my tweets, but I wanted to use the new Twitter oEmbed output to easily format my tweets as tweets, rather than just a status.]]></description>
			<content:encoded><![CDATA[<p>I use Ozh&#8217; Tweet Archiver to keep a local copy of my tweets, but I wanted to use the new Twitter oEmbed output to easily format my tweets as <em>tweets</em>, rather than just a status.</p>

<p><span id="more-8673"></span></p>

<script src="https://gist.github.com/1708947.js"> </script>
]]></content:encoded>
			<wfw:commentRss>http://uncommoncontent.com/2012/01/31/display-tweets-from-ozh-tweet-archiver-using-oembed/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add custom post types to the Loop</title>
		<link>http://uncommoncontent.com/2012/01/28/add-custom-post-types-to-the-loop</link>
		<comments>http://uncommoncontent.com/2012/01/28/add-custom-post-types-to-the-loop#comments</comments>
		<pubDate>Sat, 28 Jan 2012 19:29:07 +0000</pubDate>
		<dc:creator>Jennifer M. Dodd</dc:creator>
				<category><![CDATA[Gists]]></category>
		<category><![CDATA[custom post types]]></category>
		<category><![CDATA[loop]]></category>

		<guid isPermaLink="false">http://uncommoncontent.com/?p=8578</guid>
		<description><![CDATA[I&#8217;ve been circling this drain for years trying to make things just right.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been circling this drain for years trying to make things just right.</p>

<p><span id="more-8578"></span></p>

<script src="https://gist.github.com/1695468.js"> </script>
]]></content:encoded>
			<wfw:commentRss>http://uncommoncontent.com/2012/01/28/add-custom-post-types-to-the-loop/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add post format to FeedWordPress syndicated posts</title>
		<link>http://uncommoncontent.com/2011/12/31/add-post-format-to-feedwordpress-syndicated-posts</link>
		<comments>http://uncommoncontent.com/2011/12/31/add-post-format-to-feedwordpress-syndicated-posts#comments</comments>
		<pubDate>Sat, 31 Dec 2011 21:42:38 +0000</pubDate>
		<dc:creator>Jennifer M. Dodd</dc:creator>
				<category><![CDATA[Gists]]></category>
		<category><![CDATA[feedwordpress]]></category>
		<category><![CDATA[post formats]]></category>

		<guid isPermaLink="false">http://uncommoncontent.com/?p=8550</guid>
		<description><![CDATA[This could be handy if you are importing blog posts from Tumblr, links from Delicious, and tweets from Twitter.]]></description>
			<content:encoded><![CDATA[<p>This could be handy if you are importing blog posts from Tumblr, links from Delicious, and tweets from Twitter.</p>

<p><span id="more-8550"></span></p>

<script src="https://gist.github.com/1545420.js"> </script>
]]></content:encoded>
			<wfw:commentRss>http://uncommoncontent.com/2011/12/31/add-post-format-to-feedwordpress-syndicated-posts/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remove posts with category (or categories) from BuddyPress Activity Stream</title>
		<link>http://uncommoncontent.com/2011/12/19/remove-posts-with-category-or-categories-from-buddypress-activity-stream</link>
		<comments>http://uncommoncontent.com/2011/12/19/remove-posts-with-category-or-categories-from-buddypress-activity-stream#comments</comments>
		<pubDate>Mon, 19 Dec 2011 16:25:24 +0000</pubDate>
		<dc:creator>Jennifer M. Dodd</dc:creator>
				<category><![CDATA[Gists]]></category>
		<category><![CDATA[activity stream]]></category>
		<category><![CDATA[buddypress]]></category>

		<guid isPermaLink="false">http://uncommoncontent.com/?p=8529</guid>
		<description><![CDATA[This was tricky and took me several attempts to figure out how to gracefully remove posts in a specified category from the public BuddyPress Activity Stream. Proposed solutions took the approach of stopping the activity from being added to the &#8230; <a href="http://uncommoncontent.com/2011/12/19/remove-posts-with-category-or-categories-from-buddypress-activity-stream">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This was tricky and took me several attempts to figure out how to gracefully remove posts in a specified category from the public BuddyPress Activity Stream. Proposed solutions took the approach of stopping the activity from being added to the table; however, this raised issues when an existing post was updated and put in the excluded category, and also when an excluded post was updated to no longer be in the excluded category. Additionally, these posts were not included in the author&#8217;s individual Activity Stream, which led to further confusion.</p>

<p>I had to move <code>bp_blogs_record_post</code> from <code>save_post</code> to <code>wp_insert_post</code> to allow <code>_save_post_hook</code> to clean the post cache prior to running <code>in_category()</code>.</p>

<p><span id="more-8529"></span></p>

<script src="https://gist.github.com/1486717.js"> </script>
]]></content:encoded>
			<wfw:commentRss>http://uncommoncontent.com/2011/12/19/remove-posts-with-category-or-categories-from-buddypress-activity-stream/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add BuddyPress user notices Widget</title>
		<link>http://uncommoncontent.com/2011/12/19/add-buddypress-user-notices-widget</link>
		<comments>http://uncommoncontent.com/2011/12/19/add-buddypress-user-notices-widget#comments</comments>
		<pubDate>Mon, 19 Dec 2011 16:24:04 +0000</pubDate>
		<dc:creator>Jennifer M. Dodd</dc:creator>
				<category><![CDATA[Gists]]></category>
		<category><![CDATA[buddypress]]></category>
		<category><![CDATA[widget]]></category>

		<guid isPermaLink="false">http://uncommoncontent.com/?p=8526</guid>
		<description><![CDATA[I figured this was more useful as a plugin than as a gist. BuddyPress Sitewide Notice Widget is available from the WordPress Plugin Directory.]]></description>
			<content:encoded><![CDATA[<p>I figured this was more useful as a plugin than as a gist. <a href="http://wordpress.org/extend/plugins/buddypress-sitewide-notice-widget/">BuddyPress Sitewide Notice Widget</a> is available from the WordPress Plugin Directory.</p>
]]></content:encoded>
			<wfw:commentRss>http://uncommoncontent.com/2011/12/19/add-buddypress-user-notices-widget/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remove curly quotes on save</title>
		<link>http://uncommoncontent.com/2011/08/14/remove-curly-quotes-on-save</link>
		<comments>http://uncommoncontent.com/2011/08/14/remove-curly-quotes-on-save#comments</comments>
		<pubDate>Sun, 14 Aug 2011 05:14:53 +0000</pubDate>
		<dc:creator>Jennifer M. Dodd</dc:creator>
				<category><![CDATA[Gists]]></category>
		<category><![CDATA[filter]]></category>
		<category><![CDATA[typography]]></category>

		<guid isPermaLink="false">http://uncommoncontent.com/?p=35</guid>
		<description><![CDATA[Curly quotes are a particular nuisance, especially in incoming posts. This function removes them before the post (or comment) is inserted in the database. If an older post containing curly quotes is edited, it will save with straight quotes upon &#8230; <a href="http://uncommoncontent.com/2011/08/14/remove-curly-quotes-on-save">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Curly quotes are a particular nuisance, especially in incoming posts. This function removes them before the post (or comment) is inserted in the database. If an older post containing curly quotes is edited, it will save with straight quotes upon database insert.</p>

<p><span id="more-35"></span></p>

<script src="https://gist.github.com/1407265.js?file=gistfile1.aw"></script>
]]></content:encoded>
			<wfw:commentRss>http://uncommoncontent.com/2011/08/14/remove-curly-quotes-on-save/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add human-readable classes to wp_nav_menu()</title>
		<link>http://uncommoncontent.com/2011/08/11/add-human-readable-classes-to-wp_nav_menu</link>
		<comments>http://uncommoncontent.com/2011/08/11/add-human-readable-classes-to-wp_nav_menu#comments</comments>
		<pubDate>Thu, 11 Aug 2011 19:30:52 +0000</pubDate>
		<dc:creator>Jennifer M. Dodd</dc:creator>
				<category><![CDATA[Gists]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[wp_nav_menu]]></category>

		<guid isPermaLink="false">http://uncommoncontent.com/?p=21</guid>
		<description><![CDATA[In the default state, wp_nav_menu() classes for li elements are useful as CSS and JS selectors, but are not human-friendly. I prefer to use selectors like .menu-item-archives instead of .menu-item-38008. This function creates a human-readable class on the li elements &#8230; <a href="http://uncommoncontent.com/2011/08/11/add-human-readable-classes-to-wp_nav_menu">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>In the default state, <code>wp_nav_menu()</code> classes for <code>li</code> elements are useful as CSS and JS selectors, but are not human-friendly. I prefer to use selectors like <code>.menu-item-archives</code> instead of <code>.menu-item-38008</code>. This function creates a human-readable class on the <code>li</code> elements generated by <code>wp_nav_menu()</code>.</p>

<p><span id="more-21"></span></p>

<script src="https://gist.github.com/1139941.js"> </script>
]]></content:encoded>
			<wfw:commentRss>http://uncommoncontent.com/2011/08/11/add-human-readable-classes-to-wp_nav_menu/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add a Facebook Send button to AddThis</title>
		<link>http://uncommoncontent.com/2011/06/29/add-a-facebook-send-button-to-addthis</link>
		<comments>http://uncommoncontent.com/2011/06/29/add-a-facebook-send-button-to-addthis#comments</comments>
		<pubDate>Wed, 29 Jun 2011 19:56:45 +0000</pubDate>
		<dc:creator>Jennifer M. Dodd</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[addthis]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[send]]></category>

		<guid isPermaLink="false">http://bajada.net/?p=8494</guid>
		<description><![CDATA[Add fb:like:send="true" to the Facebook link in your AddThis button configuration. (Oh, and make sure you have xmlns:fb="http://www.facebook.com/2008/fbml" in your html tag.) Unsupported and experimental, but works for me.]]></description>
			<content:encoded><![CDATA[<p>Add <code>fb:like:send="true"</code> to the Facebook link in your AddThis button configuration. (Oh, and make sure you have <code>xmlns:fb="http://www.facebook.com/2008/fbml"</code> in your <code>html</code> tag.)</p>

<p><a href="http://www.addthis.com/forum/viewtopic.php?f=8&amp;t=31090&amp;sid=6e3f7d7183ccde9dacd2abc21619eeec">Unsupported and experimental, but works for me.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://uncommoncontent.com/2011/06/29/add-a-facebook-send-button-to-addthis/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Per user, per site Dashboard and Screen Options in WordPress multisite</title>
		<link>http://uncommoncontent.com/2011/06/06/per-user-per-site-dashboard-and-screen-options-in-wordpress-multisite</link>
		<comments>http://uncommoncontent.com/2011/06/06/per-user-per-site-dashboard-and-screen-options-in-wordpress-multisite#comments</comments>
		<pubDate>Mon, 06 Jun 2011 13:44:03 +0000</pubDate>
		<dc:creator>Jennifer M. Dodd</dc:creator>
				<category><![CDATA[Gists]]></category>
		<category><![CDATA[dashboard]]></category>
		<category><![CDATA[multisite]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[screenoptions]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://uncommoncontent.com/?p=48</guid>
		<description><![CDATA[The <a href="http://wordpress.org/extend/plugins/shadow-screen-options/">Shadow Screen Options</a> plugin deals with setting per user, per blog Dashboard and Screen Options (primarily, the meta box configuration and screen option settings on the Add New/Edit Post page) in a WordPress multisite installation. <a href="http://uncommoncontent.com/2011/06/06/per-user-per-site-dashboard-and-screen-options-in-wordpress-multisite">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>In a WordPress multisite installation, users were customizing their meta box configuration in the Screen Options tab (including boxes for various plugins) and having the settings disappear<sup id="fnref:1"><a href="#fn:1" rel="footnote">1</a></sup><sup id="fnref:2"><a href="#fn:2" rel="footnote">2</a></sup> between sites because WPMS has per user&#8211;not per user, per site&#8211;options for customizing the Dashboard and Screen Options.</p>

<!-- more -->

<p>I ended up writing the following plugin to create a series of shadow screen options for each user. This is reasonable on multisite installs with a finite number of users and blogs. If you are not concerned with the number of rows added per user, per blog, then this will allow your users to set Screen Options on a per blog basis. This is especially relevant on multisite installs where blogs have different uses and the active plugin set differs between blogs. Screen Options for plugin-generated meta boxes will be saved on a per site basis for each user, allowing them to retain their Add New/Edit Post appearance on each separate blog.</p>

<p><a href="http://wordpress.org/extend/plugins/shadow-screen-options/">Shadow Screen Options</a></p>

<h2>References</h2>

<div class="footnotes">
<hr />
<ol>

<li id="fn:1">
<p><a href="http://wordpress.org/support/topic/per-user-screen-options-overwrite-per-site-custom-meta-boxes">Per user screen options overwrite per site custom meta boxes</a>&#160;<a href="#fnref:1" rev="footnote">&#8617;</a></p>
</li>

<li id="fn:2">
<p><a href="http://core.trac.wordpress.org/ticket/17370">Screen options and meta box settings can lose per-blog meta box positions</a>&#160;<a href="#fnref:2" rev="footnote">&#8617;</a></p>
</li>

</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://uncommoncontent.com/2011/06/06/per-user-per-site-dashboard-and-screen-options-in-wordpress-multisite/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unfilter links in captions in the WordPress Add Image dialogue</title>
		<link>http://uncommoncontent.com/2011/04/19/unfilter-links-in-captions-in-the-wordpress-add-image-dialogue</link>
		<comments>http://uncommoncontent.com/2011/04/19/unfilter-links-in-captions-in-the-wordpress-add-image-dialogue#comments</comments>
		<pubDate>Tue, 19 Apr 2011 19:00:04 +0000</pubDate>
		<dc:creator>Jennifer M. Dodd</dc:creator>
				<category><![CDATA[Gists]]></category>
		<category><![CDATA[add_filter]]></category>
		<category><![CDATA[caption]]></category>
		<category><![CDATA[charset]]></category>
		<category><![CDATA[encoding]]></category>

		<guid isPermaLink="false">http://bajada.net/?p=5674</guid>
		<description><![CDATA[Between WordPress 3.0 and WordPress 3.1, code was added to change certain characters in image captions into their HTML/ASCII character code equivalents. However, some people like to include links in captions, and this new filter broke that ability by swapping &#8230; <a href="http://uncommoncontent.com/2011/04/19/unfilter-links-in-captions-in-the-wordpress-add-image-dialogue">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Between WordPress 3.0 and WordPress 3.1, code was added to change certain characters in image captions into their HTML/ASCII character code equivalents. However, some people like to include links in captions, and this new filter broke that ability by swapping valid link code (albeit with strict limitations on the use of single and double quote characters) for HTML characters.</p>

<p><span id="more-5674"></span></p>

<p>The following function adds a filter that removes this character replacement.</p>

<script src="https://gist.github.com/1404031.js?file=gistfile1.aw"></script>

<h3>References</h3>

<p><a href="http://core.trac.wordpress.org/browser/trunk/wp-admin/includes/media.php">wp-admin/includes/media.php</a></p>
]]></content:encoded>
			<wfw:commentRss>http://uncommoncontent.com/2011/04/19/unfilter-links-in-captions-in-the-wordpress-add-image-dialogue/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

