<?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>SofaRider &#187; wordpress</title>
	<atom:link href="http://rider.sofarider.com/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://rider.sofarider.com</link>
	<description>WordPress Themes, Widgets, Development &#124; WEB &#38; Graphic Design</description>
	<lastBuildDate>Wed, 14 Oct 2009 08:40:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>WordPress &#8211; simple site map code</title>
		<link>http://rider.sofarider.com/blog/wordpress-tips/wordpress-simple-site-map-code/</link>
		<comments>http://rider.sofarider.com/blog/wordpress-tips/wordpress-simple-site-map-code/#comments</comments>
		<pubDate>Sun, 13 Sep 2009 06:41:49 +0000</pubDate>
		<dc:creator>Feeleep</dc:creator>
				<category><![CDATA[Wordpress Tips]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[site map]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://rider.sofarider.com/?p=284</guid>
		<description><![CDATA[Recently I&#8217;ve been proposed to add a sitemap template page (read functionality) to one of my WordPress themes. I started to Google for it but none of available plugins or code snippets didn&#8217;t do well. What my client actually wanted to have was something similar to a tree system where folders would represent categories/sub-categories and [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://rider.sofarider.com/wp-content/uploads/2009/09/tree-200x200.png" alt="tree" title="tree" width="200" height="200" class="alignnone size-thumbnail wp-image-283" />Recently I&#8217;ve been proposed to add a sitemap template page (read functionality) to one of my WordPress themes. I started to Google for it but none of available plugins or code snippets didn&#8217;t do well. What my client actually wanted to have was something similar to a tree system where folders would represent categories/sub-categories and files would &#8216;become&#8217; Post titles. So, here&#8217;s the result of a really simple site map generator for any WordPress theme.<br />
I do not claim it&#8217;s perfect and I&#8217;m aware it needs certain improvements but I guess it&#8217;s quite good for that purpose.</p>
<h2>The code</h2>
<p>Please note that I have created new WordPress template file and save it as &#8217;sitemap.php&#8217; in theme&#8217;s root folder. For more info regarding custom WP template files and how to use them, please refer to <a href="http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates" target="_blank">this page</a>.<br />
Also, another important info is that this code will work only for Custom Permalink structure set to <strong>/%category%/%postname%/</strong>.</p>
<pre>
<code>
&lt;?php
    // easy job for pages...
    echo '&lt;ul&gt;';
    echo '&lt;li&gt;&lt;h1&gt;PAGES:&lt;/h1&gt;&lt;/li&gt;';
    echo '&lt;li&gt;&lt;ul&gt;';
    wp_list_pages( 'title_li=&amp;echo=1' );
    echo '&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;';

    // categories sitemap will be tough...get'em all
    $subcats = wp_list_categories( 'echo=0&amp;use_desc_for_title=0&amp;title_li=' );
    // anybody there?
    preg_match_all( '|&lt;a.*?href=[\'&quot;](.*?)[\'&quot;].*?&gt;|i', $subcats, $m );
	if( !$m[ 1 ] ) {
		// no categs, subcategs or whatsoever...
		echo &quot;There are no categories added to your WordPress site.&quot;;
	} else {
		$arr_categories = array();
		$arr_orig_urls  = array();
		foreach( $m[ 1 ] as $key =&gt; $value ) {
			// $value will keep the URL, extract category slug
			$arr_of_url = explode( '/', $value );
			array_pop( $arr_of_url ); // remove empty
			// push the last
			array_push( $arr_categories, $arr_of_url[ count( $arr_of_url ) - 1 ] );
			// get its URL
			array_push( $arr_orig_urls, $value );
		}
	}

	if( count( $arr_categories ) &gt; 0 ) {
		// now we have entire logical structure of all categories
		// let's try to get ID for each of these
		echo '&lt;ul&gt;';
		echo '&lt;li&gt;&lt;h1&gt;CATEGORIES:&lt;/h1&gt;&lt;/li&gt;';
		$i = 0;
		while( $i &lt; count( $arr_categories ) ) {
			// shortcut by WP built-in
			$idObj = get_category_by_slug( $arr_categories[ $i ] );
			$catid = $idObj-&gt;term_id;

			// check whether this is root category. If true, make an outset in list, otherwise leave inset.
			if( $idObj-&gt;category_parent &gt; 0 ) echo '&lt;li&gt;&lt;ul&gt;';

			// get category real name and link
			$cat_real_name = $wpdb-&gt;get_var( &quot;SELECT name FROM $wpdb-&gt;terms WHERE term_id=&quot; . $catid );
			echo '&lt;li&gt;&lt;h2&gt;&lt;a href=&quot;' . $arr_orig_urls[ $i ] . '&quot;&gt;' . $cat_real_name . '&lt;/a&gt;&lt;/h2&gt;&lt;/li&gt;';

			// generate list of posts
			echo '&lt;li&gt;&lt;ul&gt;';
			query_posts( 'cat=' . $catid  . '&amp;order=ASC' ); // change to DESC - if required
			while( have_posts() ) : the_post();
?&gt;

&lt;li&gt;&lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot; title=&quot;&lt;?php the_title(); ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/li&gt;
&lt;?php
			endwhile;
			echo '&lt;/ul&gt;&lt;/li&gt;';
			if( $idObj-&gt;category_parent &gt; 0 ) echo '&lt;/ul&gt;&lt;/li&gt;';
			$i ++;
		}
	echo '&lt;/ul&gt;';
	}
?&gt;
</code>
</pre>
<p>Hopefully you will find this code useful. Any comment/suggestion regarding improvement is welcome!</p>
]]></content:encoded>
			<wfw:commentRss>http://rider.sofarider.com/blog/wordpress-tips/wordpress-simple-site-map-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to display total number of posts</title>
		<link>http://rider.sofarider.com/blog/wordpress-tips/how-to-display-total-number-of-posts/</link>
		<comments>http://rider.sofarider.com/blog/wordpress-tips/how-to-display-total-number-of-posts/#comments</comments>
		<pubDate>Thu, 25 Jun 2009 15:06:53 +0000</pubDate>
		<dc:creator>Feeleep</dc:creator>
				<category><![CDATA[Wordpress Tips]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[post]]></category>
		<category><![CDATA[total number]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://rider.sofarider.com/?p=178</guid>
		<description><![CDATA[For a case you want to display total number of posts ever published on your blog, here is an easy way to do it. I guess there&#8217;s another method but this one works fine for me just fine. You can say &#8216;Why the hell one would need something like that?&#8217; but just try to Google [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://rider.sofarider.com/wp-content/uploads/2009/06/numbers-200x200.jpg" alt="numbers" title="numbers" width="200" height="200" class="alignnone size-thumbnail wp-image-179" />For a case you want to display total number of posts ever published on your blog, here is an easy way to do it. I guess there&#8217;s another method but this one works fine for me just fine. You can say &#8216;Why the hell one would need something like that?&#8217; but just try to Google for the subject of this post and you&#8217;ll see it doesn&#8217;t seem to be so useless. Here it is:</p>
<pre>
<code>
&lt;?php
	$numposts = $wpdb-&gt;get_var( &quot;SELECT COUNT(*) FROM $wpdb-&gt;posts WHERE post_status = 'publish'&quot; );
	echo $numposts;
?&gt;
</code>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://rider.sofarider.com/blog/wordpress-tips/how-to-display-total-number-of-posts/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Pressword &#8211; WP Magazine theme</title>
		<link>http://rider.sofarider.com/work/wordpress-themes/pressword-wp-magazine-theme/</link>
		<comments>http://rider.sofarider.com/work/wordpress-themes/pressword-wp-magazine-theme/#comments</comments>
		<pubDate>Tue, 16 Jun 2009 10:43:38 +0000</pubDate>
		<dc:creator>Feeleep</dc:creator>
				<category><![CDATA[WordPress Themes]]></category>
		<category><![CDATA[magazine]]></category>
		<category><![CDATA[template]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://rider.sofarider.com/?p=14</guid>
		<description><![CDATA[
NOTE: This theme can be purchased exclusively via Themeforest!
Sofa Pressword is 3 columns, widget ready, magazine/news niche ready premium theme. It has 5 widget ready blocks: 2 sidebar and 3 separate footer columns. The layout is quite clear, no matter wheter you are about to have an online magazine or blog – it&#8217;s your choice. [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://rider.sofarider.com/wp-content/uploads/2009/06/pressword.jpg" rel="shadowbox[imageset]"><img src="http://rider.sofarider.com/wp-content/uploads/2009/06/pressword-588x509.jpg" alt="pressword" title="pressword" width="588" height="509" class="alignnone size-medium wp-image-16" /></a><br />
<strong>NOTE:</strong> This theme can be purchased exclusively via <a href="http://themeforest.net/item/sofa-pressword/31502">Themeforest</a>!</p>
<p>Sofa Pressword is 3 columns, widget ready, magazine/news niche ready premium theme. It has 5 widget ready blocks: 2 sidebar and 3 separate footer columns. The layout is quite clear, no matter wheter you are about to have an online magazine or blog – it&#8217;s your choice. It comes packed with two cool Flash plugins – widgets which may be customized via standard widget interface.<br />
There are also two ready-made advertising PHP pages included: &#8216;advertSidebar_narrow.php&#8217; and &#8216;advertSidebar_wide.php&#8217;. First one is supposed to &#8216;hold&#8217; 185px wide banners and the other one (wide) is reserved for 125&#215;125 px banners. One of the greatest things about this theme is that if you already know how to use WordPress, you&#8217;ll know how to use it; no extra requirements, no extra settings, no messing up with the code.</p>
<h2>Features</h2>
<ul>
<li>3 columns</li>
<li>WP 2.6 &#8211; 2.7.1 ready</li>
<li>all Browsers, PC &#038; Mac compliant</li>
<li>5 widget-ready blocks; 2 sidebar and 3 in da footer</li>
<li>2 Flash plugins included; RSS Reader and RSS Forecast</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://rider.sofarider.com/work/wordpress-themes/pressword-wp-magazine-theme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DesignerFolio &#8211; Premium WordPress theme</title>
		<link>http://rider.sofarider.com/work/wordpress-themes/designerfolio-premium-wordpress-theme/</link>
		<comments>http://rider.sofarider.com/work/wordpress-themes/designerfolio-premium-wordpress-theme/#comments</comments>
		<pubDate>Tue, 16 Jun 2009 10:35:28 +0000</pubDate>
		<dc:creator>Feeleep</dc:creator>
				<category><![CDATA[WordPress Themes]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[premium]]></category>
		<category><![CDATA[template]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://rider.sofarider.com/?p=11</guid>
		<description><![CDATA[
NOTE: This theme can be purchased exclusively via Themeforest!
Sofa Designer Folio theme allows you to keep designer&#8217;s showcase separated from the blog. For that reason this theme is using two type of templates: Portfolio and Blog. These are actually two top level categories which must be created because the concept of Sofa Designer Folio theme [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://rider.sofarider.com/wp-content/uploads/2009/06/designer_folio.jpg" rel="shadowbox[imageset]"><img src="http://rider.sofarider.com/wp-content/uploads/2009/06/designer_folio-588x588.jpg" alt="designer_folio" title="designer_folio" width="588" height="588" class="alignnone size-medium wp-image-12" /></a><br />
<strong>NOTE:</strong> This theme can be purchased exclusively via <a href="http://themeforest.net/item/sofa-designer-folio/30472">Themeforest</a>!</p>
<p>Sofa Designer Folio theme allows you to keep designer&#8217;s showcase separated from the blog. For that reason this theme is using two type of templates: Portfolio and Blog. These are actually two top level categories which must be created because the concept of Sofa Designer Folio theme relies on such approach. Each and every aspect of this theme can be managed through the Admin panel, even the Flash slideshow which can be seen on the top of the page.<br />
<br /> This theme is definitely not a money maker WordPress theme, it has been made for the people who make money out of their work. It&#8217;s clean, straight-two-columns, no-advertising-poluted and easy to navigate theme which will make your post/page publish job as easy as never before.</p>
<h2>Features</h2>
<ul>
<li>WordPress version 2.6 &#8211; 2.7.1.</li>
<li>All Browsers friendly (PC &#038; Mac)</li>
<li>2 columns &#8211; strict</li>
<li>Easy to manage via WP Admin panel</li>
<li>Flash slideshow included :)</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://rider.sofarider.com/work/wordpress-themes/designerfolio-premium-wordpress-theme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sofa Realty &#8211; full Flash WordPress theme</title>
		<link>http://rider.sofarider.com/work/wordpress-themes/sofa-realty-full-flash-wordpress-theme/</link>
		<comments>http://rider.sofarider.com/work/wordpress-themes/sofa-realty-full-flash-wordpress-theme/#comments</comments>
		<pubDate>Tue, 16 Jun 2009 10:31:23 +0000</pubDate>
		<dc:creator>Feeleep</dc:creator>
				<category><![CDATA[WordPress Themes]]></category>
		<category><![CDATA[flash template]]></category>
		<category><![CDATA[flash theme]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpress flash]]></category>

		<guid isPermaLink="false">http://rider.sofarider.com/?p=7</guid>
		<description><![CDATA[
NOTE: This theme can be purchased exclusively via Themeforest!
SOFA RealEstate is full Flash made WordPress theme. It goes on behalf of Realtors or Real Estate agencies because it has been customized and made for such purpose. Theme owners are supposed to design page header and probably do some typo tuning job (CSS). Everything else can [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://rider.sofarider.com/wp-content/uploads/2009/06/sofa_realty.jpg" rel="shadowbox[imageset]"><img src="http://rider.sofarider.com/wp-content/uploads/2009/06/sofa_realty-588x438.jpg" alt="sofa_realty" title="sofa_realty" width="588" height="438" class="alignnone size-medium wp-image-8" /></a><br />
<strong>NOTE:</strong> This theme can be purchased exclusively via <a href="http://themeforest.net/item/sofa-realestate/26700">Themeforest</a>!</p>
<p>SOFA RealEstate is full Flash made WordPress theme. It goes on behalf of Realtors or Real Estate agencies because it has been customized and made for such purpose. Theme owners are supposed to design page header and probably do some typo tuning job (CSS). Everything else can be managed via WP Admin panel. Tilable backgrounds are also supported. Image and Youtube video thumbnails are generated automatically. This theme has built-in Post/Page image/video gallery (some kind of Flash Lightbox) as well as auto pagination control. It&#8217;s well documented, just follow instructions and you&#8217;ll need 10 minutes to make it ready.<br />
SOFA RealEstate theme does not include source FLA file. It&#8217;s too complex, contains custom and third party classes which are copyright protected and is almost impossible to document/cover all the aspects of this theme. Many will try to decompile SWF but I bet they&#8217;ll give up even sooner.<br />
Another thing you should know before you purchase this theme is that you will be able to use default font only. This is due to the fact that Flash does not allow embeded fonts to be replaced via CSS. I didn&#8217;t want to use shared library workaround because I guess many people do not know much about Flash. Better, yet simple solution is that I&#8217;ll re-render SWF with the font of your choice &#8211; free of charge, you only need to send it via e-mail. In case you need some extra customization &#8211; drop me a note.</p>
<h2>Features</h2>
<ul>
<li>Width: No limit (300px min.), float or fixed</li>
<li>All Flash Player and JavaScript enabled Browsers ready</li>
<li>Auto controlled/resized images and Youtube video</li>
<li>All Latin characters support (requires UTF-8 database!)</li>
<li>Many, many other options available via Admin panel</li>
</ul>
<p><b>NOTE!</b><br />
Some problems with data exchange between Flash and PHP reported on server running PHP version 4.2. At this point I&#8217;m not sure what&#8217;s an issue so I recommend &#8217;stable&#8217; versions of PHP; 4.4.9 or 5.2.8 &#8211; in order to make this theme function properly.<br /> Sorry for any inconvenience but is good to know before purchase.</p>
]]></content:encoded>
			<wfw:commentRss>http://rider.sofarider.com/work/wordpress-themes/sofa-realty-full-flash-wordpress-theme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
