<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/tags/wordpress-template</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Tue, 21 May 2013 17:56:16 GMT</pubDate>
<item>
<title>(PHP) Geo Mashup global map of the current category - cyberhobo</title>
<link>http://snipplr.com/view/44389/geo-mashup-global-map-of-the-current-category/</link>
<description><![CDATA[ <p>This code would go in a category template, outside the loop. In a more general template, you'd want to put it inside a check for `is_category()`.</p> ]]></description>
<pubDate>Fri, 19 Nov 2010 03:22:59 GMT</pubDate>
<guid>http://snipplr.com/view/44389/geo-mashup-global-map-of-the-current-category/</guid>
</item>
<item>
<title>(PHP) WordPress: in subcatory? - cyberhobo</title>
<link>http://snipplr.com/view/18874/wordpress-in-subcatory/</link>
<description><![CDATA[ <p>Usually use in a template with `in_category()`, like `if ( in_category( 3 ) || in_subcategory( 3 ) ) { ...`. Tested in WP 2.8.4.</p> ]]></description>
<pubDate>Wed, 26 Aug 2009 15:15:48 GMT</pubDate>
<guid>http://snipplr.com/view/18874/wordpress-in-subcatory/</guid>
</item>
<item>
<title>(PHP) WordPress: Get the root page ID - cyberhobo</title>
<link>http://snipplr.com/view/18408/wordpress-get-the-root-page-id/</link>
<description><![CDATA[ <p>Get the ID of the root (oldest ancestor, parent without parents) page relative to the current page in a WordPress page template.

Can be helpful for use with wp\_list\_pages() to create navigation markup.</p> ]]></description>
<pubDate>Mon, 17 Aug 2009 17:49:20 GMT</pubDate>
<guid>http://snipplr.com/view/18408/wordpress-get-the-root-page-id/</guid>
</item>
<item>
<title>(PHP) Wordpress: Does a page have children? - cyberhobo</title>
<link>http://snipplr.com/view/18393/wordpress-does-a-page-have-children/</link>
<description><![CDATA[ <p>There's no has\_children() function in WP 2.8.4, but get\_children() returns false if the post/page has no children, so it can serve the same purpose in a page template. 

Outside a page template you'd have to add a global declaration for the $post variable.</p> ]]></description>
<pubDate>Mon, 17 Aug 2009 11:20:03 GMT</pubDate>
<guid>http://snipplr.com/view/18393/wordpress-does-a-page-have-children/</guid>
</item>
</channel>
</rss>