<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - cyberhobo</title>
<link>http://snipplr.com/users/cyberhobo/tags/wordpress</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Thu, 23 May 2013 16:51:23 GMT</pubDate>
<item>
<title>(PHP) Geo Mashup post query contextual map</title>
<link>http://snipplr.com/view/37962/geo-mashup-post-query-contextual-map/</link>
<description><![CDATA[ <p>Geo Mashup contextual maps display the results of a WordPress query, so they can be very useful in combination with the WordPress `query_posts` function. This example maps post with an example tag, but any call to `query_posts` could be substituted. This is code that would go in a WordPress template.</p> ]]></description>
<pubDate>Wed, 28 Jul 2010 02:51:41 GMT</pubDate>
<guid>http://snipplr.com/view/37962/geo-mashup-post-query-contextual-map/</guid>
</item>
<item>
<title>(PHP) Conditional Geo Mashup map template code</title>
<link>http://snipplr.com/view/29558/conditional-geo-mashup-map-template-code/</link>
<description><![CDATA[ <p>This template code will work only in the WordPress Loop to include a map if the Geo Mashup plugin is active and the current post has a location.</p> ]]></description>
<pubDate>Wed, 10 Mar 2010 15:26:24 GMT</pubDate>
<guid>http://snipplr.com/view/29558/conditional-geo-mashup-map-template-code/</guid>
</item>
<item>
<title>(PHP) Global Geo Mashup map centered on current post</title>
<link>http://snipplr.com/view/28178/global-geo-mashup-map-centered-on-current-post/</link>
<description><![CDATA[ <p>Use this code in a WordPress template with the Geo Mashup plugin (see URL) to include a global map within a post or page, centered on that post or page's location, with marker highlighted.</p> ]]></description>
<pubDate>Thu, 11 Feb 2010 11:53:59 GMT</pubDate>
<guid>http://snipplr.com/view/28178/global-geo-mashup-map-centered-on-current-post/</guid>
</item>
<item>
<title>(PHP) WordPress is_child_of: Is this a child of page x?</title>
<link>http://snipplr.com/view/20847/wordpress-ischildof-is-this-a-child-of-page-x/</link>
<description><![CDATA[ <p>This makes template code that applies to children of a particular page much more readable, especially if you can use a page path instead of an ID: `if ( is_child_of( 'topic/subtopic' ) ) :`.</p> ]]></description>
<pubDate>Thu, 08 Oct 2009 15:25:09 GMT</pubDate>
<guid>http://snipplr.com/view/20847/wordpress-ischildof-is-this-a-child-of-page-x/</guid>
</item>
<item>
<title>(PHP) WordPress: in subcatory?</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</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>(jQuery) jQuery: select first and/or last list items</title>
<link>http://snipplr.com/view/18407/jquery-select-first-andor-last-list-items/</link>
<description><![CDATA[ <p>Select the first and last item in an unordered list. As an example, I add a CSS class to each.

In WordPress, it's not so easy to get wp\_list\_pages() to generate these classes. jQuery provides an easy out for javascript-enabled clients.</p> ]]></description>
<pubDate>Mon, 17 Aug 2009 17:14:01 GMT</pubDate>
<guid>http://snipplr.com/view/18407/jquery-select-first-andor-last-list-items/</guid>
</item>
<item>
<title>(PHP) Wordpress: Does a page have children?</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>