<?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>Okada Design Blog &#187; wp</title>
	<atom:link href="http://www.okadadesign.no/blog/category/wp/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.okadadesign.no/blog</link>
	<description>Welcome to Okada Design Web Development Blog</description>
	<lastBuildDate>Wed, 11 Jan 2012 23:21:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Implementing &#8216;Show Your Google Analytics Top Content in WordPress&#8217;</title>
		<link>http://www.okadadesign.no/blog/plug-ins/implementing-show-your-google-analytics-top-content-in-wordpress/</link>
		<comments>http://www.okadadesign.no/blog/plug-ins/implementing-show-your-google-analytics-top-content-in-wordpress/#comments</comments>
		<pubDate>Sun, 28 Mar 2010 17:35:54 +0000</pubDate>
		<dc:creator>shinokada</dc:creator>
				<category><![CDATA[plug-ins]]></category>
		<category><![CDATA[wp]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.okadadesign.no/blog/?p=1752</guid>
		<description><![CDATA[ <p> After reading this article, I modified and implemented it in this blog. You can see it in the right column.</p> <p>This is how I did it.</p> <p> 1. Download and install Exec-Php. Then activate it. 2. Go to &#8216;Widgets&#8217;. Select &#8216;Text&#8217; from the Widgets and add the following code. Please note that [...]
Related posts:<ol>
<li><a href='http://www.okadadesign.no/blog/codeigniter/rss-feeds-and-google-analytics-added-to-kaimonokago/' rel='bookmark' title='RSS Feeds and Google Analytics added to Kaimonokago'>RSS Feeds and Google Analytics added to Kaimonokago</a></li>
<li><a href='http://www.okadadesign.no/blog/wp/wordpress-podcast-by-drew-douglass-from-themeforestnet/' rel='bookmark' title='WordPress Podcast by Drew Douglass from Themeforest.net'>WordPress Podcast by Drew Douglass from Themeforest.net</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.okadadesign.no%2Fblog%2Fplug-ins%2Fimplementing-show-your-google-analytics-top-content-in-wordpress%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.okadadesign.no%2Fblog%2Fplug-ins%2Fimplementing-show-your-google-analytics-top-content-in-wordpress%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><img src="http://www.okadadesign.no/blog/wp-content/uploads/2010/03/analytics_top_content.jpg" alt="" title="analytics_top_content" width="200" height="200" class="alignleft size-full wp-image-1762" /><br />
<a href="http://www.cssnewbie.com/google-analytics-top-content-in-wordpress/?utm_source=feedburner&#038;utm_medium=feed&#038;utm_campaign=Feed%3A+cssnewbie+%28CSS+Newbie%29&#038;utm_content=Google+Reader">After reading this article</a>, I modified and implemented it in this blog. You can see it in the right column.</p>
<p>This is how I did it.</p>
<div class="clearboth"></div>
<p><span id="more-1752"></span><br />
1. Download and install <a href="http://wordpress.org/extend/plugins/exec-php/">Exec-Php</a>. Then activate it.<br />
2. Go to &#8216;Widgets&#8217;. Select &#8216;Text&#8217; from the Widgets and add the following code.<br />
Please note that I do not want to show &#8216; | Okada Design Blog&#8217; or &#8216; « Okada Design Blog&#8217; in the title.<br />
Also I don&#8217;t want to show some pages including the index page, &#8216;(not set)&#8217;, &#8216;Okada Design Blog&#8217;, &#8216;Downloads | Okada Design Blog&#8217; and &#8216;Downloads « Okada Design Blog&#8217;</p>
<p>So you need to adjust it accordingly for your situations.</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
$start = date('Y-m-d', (time() - (60 * 60 * 24 * 30)));
$end = date('Y-m-d');
$showpages = 10;
$thispage = 1;

$login = new GADWidgetData();
$ga = new GALib($login-&gt;auth_token, $login-&gt;account_id, 60);
$pages = $ga-&gt;pages_for_date_period($start, $end);

echo &quot;&lt;ul&gt;&quot;;
foreach($pages as $page) {

	$url = $page['value'];
	$title = $page['children']['value'];
$array = array('(not set)', 'Okada Design Blog', 'Downloads | Okada Design Blog', 'Downloads « Okada Design Blog');
// You need to add any words which you don't want to show in the list
if(!in_array($title, $array)){
$takeout = array(&quot; | Okada Design Blog&quot;,&quot; « Okada Design Blog&quot;);
// You need to add any words which you want to delete in the list
$newtitle = str_replace($takeout, &quot;&quot;, $title);

	echo '&lt;li&gt;&lt;a href=&quot;' . $url . '&quot; rel=&quot;nofollow&quot;&gt;' . $newtitle . '&lt;/a&gt;&lt;/li&gt;';
	$thispage++;
}

	if($thispage &gt; $showpages) break;
}
echo &quot;&lt;/ul&gt;&quot;;
?&gt;
</pre>
<p>3. Use <a href="http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/">SyntaxHighlighter Evolved</a> for writing php code in your posts.<br />
If you write php code with &lt;?php and ?&gt;, then the code will be executed in the post.<br />
For example, </p>
<p>This is with php code.<br />This is the Exec-PHP &#8216;Hello World&#8217;. I am writing php code in the post directly. It starts with &lt;?php and ends with ?&gt;. End of php.</p>
<p>However if you use SyntaxHighlighter Evolved, it will not be executed.</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php echo &quot;This is with php code.&lt;br /&gt;&quot;;
echo &quot;This is the Exec-PHP 'Hello World'. I am writing php code in the post directly. It starts with &amp;lt;?php and ends with ?&amp;gt;. End of php.&quot;;  ?&gt;
</pre>
<p>The credit goes to <a href="http://www.cssnewbie.com/">Rob Glazebrook</a> and <a href="http://www.viper007bond.com/">Alex</a>.</p>
<p>Related posts:<ol>
<li><a href='http://www.okadadesign.no/blog/codeigniter/rss-feeds-and-google-analytics-added-to-kaimonokago/' rel='bookmark' title='RSS Feeds and Google Analytics added to Kaimonokago'>RSS Feeds and Google Analytics added to Kaimonokago</a></li>
<li><a href='http://www.okadadesign.no/blog/wp/wordpress-podcast-by-drew-douglass-from-themeforestnet/' rel='bookmark' title='WordPress Podcast by Drew Douglass from Themeforest.net'>WordPress Podcast by Drew Douglass from Themeforest.net</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.okadadesign.no/blog/plug-ins/implementing-show-your-google-analytics-top-content-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>WordPress Podcast by Drew Douglass from Themeforest.net</title>
		<link>http://www.okadadesign.no/blog/wp/wordpress-podcast-by-drew-douglass-from-themeforestnet/</link>
		<comments>http://www.okadadesign.no/blog/wp/wordpress-podcast-by-drew-douglass-from-themeforestnet/#comments</comments>
		<pubDate>Sun, 22 Feb 2009 15:00:00 +0000</pubDate>
		<dc:creator>shinokada</dc:creator>
				<category><![CDATA[Resources]]></category>
		<category><![CDATA[wp]]></category>

		<guid isPermaLink="false">http://www.okadadesign.no/blog/?p=26</guid>
		<description><![CDATA[ <p>This is a nice series of WordPress podcast. I have not used wp yet, but it seems very easy to use it. Great tutorials. I highly recommend to subscribe Themforest RSS.This is Day 7. If you want to watch from Day 1, visit Themeforest.net. You can find other great podcasts as well, such [...]
Related posts:<ol>
<li><a href='http://www.okadadesign.no/blog/jquery/jquery-for-absolute-beginners/' rel='bookmark' title='Jquery for Absolute Beginners'>Jquery for Absolute Beginners</a></li>
<li><a href='http://www.okadadesign.no/blog/plug-ins/implementing-show-your-google-analytics-top-content-in-wordpress/' rel='bookmark' title='Implementing &#8216;Show Your Google Analytics Top Content in WordPress&#8217;'>Implementing &#8216;Show Your Google Analytics Top Content in WordPress&#8217;</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.okadadesign.no%2Fblog%2Fwp%2Fwordpress-podcast-by-drew-douglass-from-themeforestnet%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.okadadesign.no%2Fblog%2Fwp%2Fwordpress-podcast-by-drew-douglass-from-themeforestnet%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>This is a nice series of WordPress podcast. <br />I have not used wp yet, but it seems very easy to use it. <br />Great tutorials. I highly recommend to subscribe Themforest RSS.<br />This is Day 7. If you want to watch from Day 1, visit <a href="http://blog.themeforest.net/">Themeforest.net</a>. <br />You can find other great podcasts as well, such as jQuery, php etc. <br />It&#8217;s a great place to visit.</p>
<p><embed src="http://blip.tv/play/grg37pY6j7EM" type="application/x-shockwave-flash" width="413" height="310" allowscriptaccess="always" allowfullscreen="true"></embed></p>
<p>Related posts:<ol>
<li><a href='http://www.okadadesign.no/blog/jquery/jquery-for-absolute-beginners/' rel='bookmark' title='Jquery for Absolute Beginners'>Jquery for Absolute Beginners</a></li>
<li><a href='http://www.okadadesign.no/blog/plug-ins/implementing-show-your-google-analytics-top-content-in-wordpress/' rel='bookmark' title='Implementing &#8216;Show Your Google Analytics Top Content in WordPress&#8217;'>Implementing &#8216;Show Your Google Analytics Top Content in WordPress&#8217;</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.okadadesign.no/blog/wp/wordpress-podcast-by-drew-douglass-from-themeforestnet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

