<?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>Analysis and Review &#187; Wordpress</title>
	<atom:link href="http://analysisandreview.com/category/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://analysisandreview.com</link>
	<description>Brain Dumps For All</description>
	<lastBuildDate>Fri, 13 Apr 2012 12:51:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>How to Add Google +1 To WordPress Blog</title>
		<link>http://analysisandreview.com/wordpress/how-to-add-google-1-to-wordpress-blog/</link>
		<comments>http://analysisandreview.com/wordpress/how-to-add-google-1-to-wordpress-blog/#comments</comments>
		<pubDate>Thu, 06 Oct 2011 13:31:57 +0000</pubDate>
		<dc:creator>Kurt</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://analysisandreview.com/?p=885</guid>
		<description><![CDATA[If you&#8217;re using the Genesis Framework its easy to add this to your theme&#8217;s function.php &#8211; other themes use similar functions and hooks. First add google plus one to the right of your post title. The add some CSS to float it right Now add the google +1 javascript to your header so google can ]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re using the Genesis Framework its easy to add this to your theme&#8217;s function.php &#8211; other themes use similar functions and hooks.<span id="more-885"></span></p>
<p>First add google plus one to the right of your post title.</p>
<pre class="brush: php; title: ; notranslate">
add_action('genesis_post_title', 'google_plus_one');
function google_plus_one()
{
    if ( is_page() )
        return; // don't show google plus 1 on pages

    ?&gt; &lt;div class=&quot;plus_one&quot;&gt;&lt;g:plusone href=&quot;&lt;?php the_permalink() ?&gt;&quot;&gt;&lt;/g:plusone&gt;&lt;/div&gt;
&lt;?php }
</pre>
<p>The add some CSS to float it right</p>
<pre class="brush: php; title: ; notranslate">
.plus_one {
float:right;
margin:-40px 0;
}
</pre>
<p>Now add the google +1 javascript to your header so google can track the clicks.</p>
<pre class="brush: php; title: ; notranslate">
add_action('genesis_post_title', 'google_plus_one_script');
function google_plus_one_script()
{
&lt;script type=&quot;text/javascript&quot; src=&quot;https://apis.google.com/js/plusone.js&quot;&gt;&lt;/script&gt;
&lt;?php }
</pre>
]]></content:encoded>
			<wfw:commentRss>http://analysisandreview.com/wordpress/how-to-add-google-1-to-wordpress-blog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress 3.1 Multisite installation guide with domain mapping</title>
		<link>http://analysisandreview.com/wordpress/wordpress-3-1-multisite-installation-guide-with-domain-mapping/</link>
		<comments>http://analysisandreview.com/wordpress/wordpress-3-1-multisite-installation-guide-with-domain-mapping/#comments</comments>
		<pubDate>Tue, 12 Apr 2011 21:09:40 +0000</pubDate>
		<dc:creator>Kurt</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Wordpress 3.1 Multisite installation guide with domain mapping]]></category>

		<guid isPermaLink="false">http://analysisandreview.com/?p=837</guid>
		<description><![CDATA[WordPress 3.1 Multisite installation guide. Here I&#8217;ll walk though the simple steps to enabling multisite within your existing wordpress installation and then allowing domain mapping you can host multiple domain from within one wordpress installation. Domain mapping isn&#8217;t the same as sub folders or sub directories, domain mapping allows you to host multiple fully qualified ]]></description>
			<content:encoded><![CDATA[<p>WordPress 3.1 Multisite installation guide. <span id="more-837"></span>Here I&#8217;ll walk though the simple steps to enabling multisite within your existing wordpress installation and then allowing domain mapping you can host multiple domain from within one wordpress installation. Domain mapping isn&#8217;t the same as sub folders or sub directories, domain mapping allows you to host multiple fully qualified domain name from one wordpress 3.1 installation.</p>
<p><strong>Step 1:</strong> Install WordPress 3.1 as normal</p>
<p><strong>Step 2:</strong> edit wp-config.php and add (just above the debug line)</p>
<p>define(&#8216;WP_ALLOW_MULTISITE&#8217;, true);</p>
<p><strong>Step 3:</strong> From within the WordPress Admin Panel click – Tools – Network –  Select sub-domain</p>
<p>You now have wordpress 3.1 multisite enabled –</p>
<p><strong>Now let’s move on to Domain mapping !</strong></p>
<p>Domain mapping allows you to host multiple domains within your wordpress multisite (wpmu) installation. So you don’t have to deal with subfolders and sub domains!</p>
<p>You’ll need to simply install the domain mapping plugin <a href="http://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/">http://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/</a></p>
<ol>
<li>Install the plugin in the usual way into the regular      WordPress plugins folder. Network activate the plugin. After activation you&#8217;ll see a screen telling you to make changes to wp-config.php and .htaccess &#8211; do that! duh!</li>
<li>Move sunrise.php into wp-content/. If there is a      sunrise.php there already, you&#8217;ll just have to merge them as best you can.</li>
<li>Edit wp-config.php and uncomment or add the SUNRISE      definition line. If it does not exist please ensure it&#8217;s on the line above      the last &#8220;require_once&#8221; command. define(      &#8216;SUNRISE&#8217;, &#8216;on&#8217; );</li>
<li>As a &#8220;super admin&#8221;, visit Super      Admin-&gt;Domain Mapping to create the domain mapping database table and      set the server IP address or a domain to point CNAME records at.</li>
<li>Make sure the default Apache virtual host points at      your WordPress MU site or WordPress 3.0 network so it will handle unknown      domains correctly. On some hosts you may be required to get a dedicated IP      address. A quick check: in a web broswer, type in the IP address of your      install. If you are using CPanel, use the Park a Domain menu to set the      mapped domain to your main installtion.</li>
<li>Do not define COOKIE_DOMAIN in your wp-config.php as it      conflicts with logins on your mapped domains.</li>
</ol>
<p><strong>Couple more changes and you’re done –</strong></p>
<p>Under Super Admin-&gt;Domain Mapping – you need to only select</p>
<ul>
<li>Permanent redirect (better for your blogger&#8217;s pagerank)</li>
<li>User domain mapping page</li>
</ul>
<p>Server IP Address: x.x.x.x &#8211; make sure you have your virtual host set to look to this IP. Also each virtual host will use the document root set for your main wordpress install.</p>
<p>Comment below if you need help with your installation. Comments are held for moderation so check back tomorrow for my reply.</p>
]]></content:encoded>
			<wfw:commentRss>http://analysisandreview.com/wordpress/wordpress-3-1-multisite-installation-guide-with-domain-mapping/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>How to Add and Remove WordPress Profile Fields</title>
		<link>http://analysisandreview.com/wordpress/how-to-add-and-remove-wordpress-profile-fields/</link>
		<comments>http://analysisandreview.com/wordpress/how-to-add-and-remove-wordpress-profile-fields/#comments</comments>
		<pubDate>Wed, 28 Apr 2010 18:03:05 +0000</pubDate>
		<dc:creator>Kurt</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[add]]></category>
		<category><![CDATA[profile fields]]></category>
		<category><![CDATA[remove]]></category>

		<guid isPermaLink="false">http://analysisandreview.com/?p=752</guid>
		<description><![CDATA[Ever want to add profile fields in your wordpress profile page, or how about removing a profile field from your wordpress profile. Here you&#8217;ll see how to: Add a profile field to your author page aka profile page Remove a profile field from your wordpress profile page Call the custom profile information  somewhere within your ]]></description>
			<content:encoded><![CDATA[<p>Ever want to add profile fields in your wordpress profile page, or how about removing a profile field from your wordpress profile. <span id="more-752"></span>Here you&#8217;ll see how to:</p>
<ol>
<li>Add a profile field to your author page aka profile page</li>
<li>Remove a profile field from your wordpress profile page</li>
<li>Call the custom profile information  somewhere within your blog post</li>
</ol>
<pre class="brush: php; title: ; notranslate">&lt;?php
function my_new_contactmethods( $contactmethods ) {
	  // Remove Yahoo IM
     unset($contactmethods['yim']);
    // Add Twitter
    $contactmethods['twitter'] = 'Twitter';
    //add Facebook
    $contactmethods['facebook'] = 'Facebook URL';
    return $contactmethods;
}
add_filter('user_contactmethods','my_new_contactmethods',10,1);
?&gt;&lt;/code&gt;

And then to call is within you post or pages just edit your template files and add:

&lt;code&gt;&lt;?php echo the_author_meta('facebook');?&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://analysisandreview.com/wordpress/how-to-add-and-remove-wordpress-profile-fields/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Simple WordPress Widget to Output Code into Sidebar</title>
		<link>http://analysisandreview.com/wordpress/simple-wordpress-widget-to-output-code-into-sidebar/</link>
		<comments>http://analysisandreview.com/wordpress/simple-wordpress-widget-to-output-code-into-sidebar/#comments</comments>
		<pubDate>Sat, 24 Apr 2010 03:23:30 +0000</pubDate>
		<dc:creator>Kurt</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[head]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[pluggin]]></category>
		<category><![CDATA[sidebar]]></category>
		<category><![CDATA[widget]]></category>

		<guid isPermaLink="false">http://analysisandreview.com/?p=747</guid>
		<description><![CDATA[How to create a widget that will output whatever you like into the sidebar. Here you will learn How to register your wordpress.org widget Output html java or php code with widget Add CSS or Java script to head of the theme]]></description>
			<content:encoded><![CDATA[<p>How to create a widget that will output whatever you like into the sidebar.<span id="more-747"></span></p>
<p>Here you will learn</p>
<ul>
<li>How to register your wordpress.org widget</li>
<li>Output html java or php code with widget</li>
<li>Add CSS or Java script to head of the theme</li>
</ul>
<pre class="brush: php; title: ; notranslate">
&amp;lt;link rel=&amp;quot;stylesheet&amp;quot; type=&amp;quot;text/css&amp;quot; href=&amp;quot;/testwidget/testwidget.css&quot; /&amp;gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://analysisandreview.com/wordpress/simple-wordpress-widget-to-output-code-into-sidebar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Show Content on WordPress Home and None Homepages</title>
		<link>http://analysisandreview.com/wordpress/show-content-on-wordpress-home-and-none-home-pages/</link>
		<comments>http://analysisandreview.com/wordpress/show-content-on-wordpress-home-and-none-home-pages/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 03:31:57 +0000</pubDate>
		<dc:creator>Kurt</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[homepage]]></category>

		<guid isPermaLink="false">http://analysisandreview.com/?p=729</guid>
		<description><![CDATA[is_home &#8211; this only shows content on wordpress homepage !is_home &#8211; this shows content on none wordpress home pages such as category, single, tag pages]]></description>
			<content:encoded><![CDATA[<p>is_home &#8211; this only shows content on wordpress homepage<span id="more-729"></span><br />
!is_home &#8211; this shows content on none wordpress home pages such as category, single, tag pages.</p>
<pre class="brush: php; title: ; notranslate">

your code goes here for content you want on your home page

you other code goes here for none home page content or ads
</pre>
]]></content:encoded>
			<wfw:commentRss>http://analysisandreview.com/wordpress/show-content-on-wordpress-home-and-none-home-pages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Create a 336 ad block, adsense</title>
		<link>http://analysisandreview.com/wordpress/how-to-create-a-336-ad-block-adsense/</link>
		<comments>http://analysisandreview.com/wordpress/how-to-create-a-336-ad-block-adsense/#comments</comments>
		<pubDate>Sun, 14 Feb 2010 15:37:57 +0000</pubDate>
		<dc:creator>Kurt</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[adsense]]></category>

		<guid isPermaLink="false">http://analysisandreview.com/?p=697</guid>
		<description><![CDATA[In order to create a 336 ad block for fantasyknuckleheads.com You sign in here https://www.google.com/adsense/login/en_US/ your going to create two ads &#8211; one at a time - Click My ads The New Ad Unit &#160; Now select 336 x 280 &#8211; Large Rectangle and click the &#8220;Use Custom Settings&#8221; Button &#8211; see image below. Copy ]]></description>
			<content:encoded><![CDATA[<p>In order to create a 336 ad block for fantasyknuckleheads.com<span id="more-697"></span></p>
<p>You sign in here <a href="https://www.google.com/adsense/login/en_US/" target="_blank">https://www.google.com/adsense/login/en_US/</a></p>
<p>your going to create two ads &#8211; one at a time -</p>
<ol>
<li>Click My ads</li>
<li>The New Ad Unit</li>
</ol>
<p><a href="http://analysisandreview.com/files/2010/02/Capture.jpg"><img class="aligncenter size-full wp-image-936" title="Capture" src="http://analysisandreview.com/files/2010/02/Capture.jpg" alt="" width="475" height="312" /></a></p>
<p>&nbsp;</p>
<p>Now select<strong> 336 x 280 &#8211; Large Rectangle</strong> and click the &#8220;Use Custom Settings&#8221; Button &#8211; see image below.</p>
<p><a href="http://analysisandreview.com/files/2010/02/Capture1.jpg"><img class="aligncenter size-full wp-image-937" title="Capture1" src="http://analysisandreview.com/files/2010/02/Capture1.jpg" alt="" width="619" height="697" /></a></p>
<p>Copy paste the below hex numbers below into the style area&#8230;</p>
<ul>
<li>Border 222325</li>
<li>Title 354FFA</li>
<li>Background 212120Text 5f5f5f</li>
<li>URL 5f5f5f</li>
</ul>
<p><strong>click save and get code &#8211; copy the code and paste it into email.</strong></p>
<p>One more ad unit to go&#8230;. follow the step above again just this time you&#8217;ll make a 468 X 60 Banner</p>
<p>Now make a new ads again &#8211; this time select <strong>468 x 60 &#8211; Banner</strong> then enter the colors below.</p>
<ul>
<li>Border 222325</li>
<li>Title 354FFA</li>
<li>Background 212120</li>
<li>Text 5f5f5f</li>
<li>URL 5f5f5f</li>
</ul>
<p>click save and get code -</p>
<p>Then send me the code and all you ads will be live once I put them on the website.</p>
]]></content:encoded>
			<wfw:commentRss>http://analysisandreview.com/wordpress/how-to-create-a-336-ad-block-adsense/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Build Your Own Website / Domain</title>
		<link>http://analysisandreview.com/wordpress/build-your-own-website-domain/</link>
		<comments>http://analysisandreview.com/wordpress/build-your-own-website-domain/#comments</comments>
		<pubDate>Mon, 09 Nov 2009 22:25:36 +0000</pubDate>
		<dc:creator>Kurt</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Build]]></category>
		<category><![CDATA[Domain]]></category>
		<category><![CDATA[domain name]]></category>
		<category><![CDATA[get domain]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[how to build]]></category>
		<category><![CDATA[how to registrar]]></category>
		<category><![CDATA[registrar]]></category>
		<category><![CDATA[webpage]]></category>
		<category><![CDATA[Website]]></category>

		<guid isPermaLink="false">http://analysisandreview.com/?p=632</guid>
		<description><![CDATA[Okay so you want to build your own domain? Well you don’t really build a domain you build a website which your domain points to. Compare a domain name to your house having a street address. The house is your website, and the street address is your domain name. Domains can be purchased from many ]]></description>
			<content:encoded><![CDATA[<p>Okay so you want to build your own domain? Well you don’t really build a domain you build a website which your domain points to.<span id="more-632"></span></p>
<div id="attachment_633" class="wp-caption alignright" style="width: 385px"><img class="size-full wp-image-633" src="http://analysisandreview.com/wp-content/blogs.dir/5/files/uploads/2009/11/build-your-own-domain.jpg" alt="I have my own website.. my boy from e-trade hooked it up." width="375" height="500" /><p class="wp-caption-text">I have my own website.. my boy from e-trade hooked it up.</p></div>
<p>Compare a domain name to your house having a street address. The house is your website, and the street address is your domain name.</p>
<p>Domains can be purchased from many different places (domain registrars) but you’ll want to purchase it as cheaply as possible and use this domain registrar from here on out. If you build up a huge list of domains and they reside with several different registrars then you haven’t done yourself any favors. Renewals can be a pain and general yearly upkeep and any changes like DNS and CNAM can be a pain, so keep them all in one place.</p>
<p>I really can only recommend <a title="build your domain here" rel="nofollow" href="http://analysisandreview.com/godaddy" target="_blank">godaddy.com</a> as the place to purchase your domain name. They have easy to use tools to manage your domain and offer the best prices on domain name on the internet.</p>
<p>Now if you only plan to build one website then many hosting plans offer you a “free” domain name with the purchase of a hosting plan. Trust me do NOT purchase a hosting plan with godaddy. GoDaddy has the worst hosting package around and the hardware, network and customer support sucks. Avoid them for hosting but feel free to use them as a great source of cheap domain registration.</p>
<p>Okay back to building that house (website) which your domain will point to (street address). It can be hard to determine who to purchase you webhosting from. Of course I use <a title="build your website here" rel="nofollow" href="http://analysisandreview.com/ixwebhosting" target="_blank">ixwebhosting</a> for this blog and have been recommending them for years. Reliable service and excellent phone support 24 x 7. I’ll get emails regarding planned outages from time to time and they are always upgrading hardware, bandwidth or patching systems. Building up the infrastructure in this nature is paramount in keeping ME happy and all of my websites up and running fast.</p>
<p>Next you&#8217;ll need to publish your website with na easy to use content management system. WordPress.org is easy to install (ixwebhosting has a 1 click wordpress install button) and is super user friendly. My daughter has a wordpress blog and she is 7 years old. Check them out at <a title="build your site with wordpress" href="http://wordpress.org" target="_blank">WordPress.org</a></p>
<p>So let’s recap…</p>
<p>If you plan to buy multiple domains use godaddy. Building up a huge reservoir of domains is cheap and easy to manage with <a title="build your domain here" rel="nofollow" href="http://analysisandreview.com/godaddy" target="_blank">godaddy</a>.</p>
<p>But if you’re building just one website, you can just get one free domain with just about any hosting package around. I use and recommend <a title="build your website here" rel="nofollow" href="http://analysisandreview.com/ixwebhosting" target="_blank">ixwebhosting</a> to all my friends.</p>
<p>Last but not least you need to be able to easily publish webpages with a click of a button. Can you send an email? Then you can use wordpress.org!</p>
]]></content:encoded>
			<wfw:commentRss>http://analysisandreview.com/wordpress/build-your-own-website-domain/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to add nofollow to blogroll, wordpress 2.8</title>
		<link>http://analysisandreview.com/wordpress/how-to-add-nofollow-to-blogroll-wordpress-2-8/</link>
		<comments>http://analysisandreview.com/wordpress/how-to-add-nofollow-to-blogroll-wordpress-2-8/#comments</comments>
		<pubDate>Fri, 21 Aug 2009 16:13:25 +0000</pubDate>
		<dc:creator>Kurt</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://analysisandreview.com/?p=621</guid>
		<description><![CDATA[Tested in WP 2.8.4 Edit the following file within your wordpress installation. wp-admin/edit-link-form.ph Find this line and add the code below to add the nofollow relationship (rel=&#8221;nofollow&#8221;) &#60;th scope=&#8221;row&#8221;&#62; &#60;?php /* translators: xfn: http://gmpg.org/xfn/ */ _e(&#8216;identity&#8217;) ?&#62; &#60;/th&#62; insert the html code below &#60;tr&#62; &#60;th scope=&#8221;row&#8221;&#62; &#60;?php _e(&#8216;seo&#8217;) ?&#62; &#60;/th&#62; &#60;td&#62;&#60;fieldset&#62;&#60;legend&#62; &#60;?php _e(&#8216;seo&#8217;) ?&#62; &#60;/legend&#62; ]]></description>
			<content:encoded><![CDATA[<p>Tested in WP 2.8.4<span id="more-621"></span></p>
<p>Edit the following file within your wordpress installation.</p>
<p>wp-admin/edit-link-form.ph</p>
<p>Find this line and add the code below to add the nofollow relationship (rel=&#8221;nofollow&#8221;)</p>
<p>&lt;th scope=&#8221;row&#8221;&gt; &lt;?php /* translators: xfn: http://gmpg.org/xfn/ */ _e(&#8216;identity&#8217;) ?&gt; &lt;/th&gt;</p>
<p>insert the html code below</p>
<p>&lt;tr&gt;<br />
&lt;th scope=&#8221;row&#8221;&gt; &lt;?php _e(&#8216;seo&#8217;) ?&gt; &lt;/th&gt;<br />
&lt;td&gt;&lt;fieldset&gt;&lt;legend&gt; &lt;?php _e(&#8216;seo&#8217;) ?&gt; &lt;/legend&gt;<br />
&lt;label for=&#8221;external&#8221;&gt;<br />
&lt;input type=&#8221;checkbox&#8221; name=&#8221;seo&#8221; value=&#8221;external&#8221; id=&#8221;external&#8221; &lt;?php xfn_check(&#8216;seo&#8217;, &#8216;external&#8217;); ?&gt; /&gt;<br />
&lt;?php _e(&#8216;external&#8217;) ?&gt;&lt;/label&gt;<br />
&lt;label for=&#8221;nofollow&#8221;&gt;<br />
&lt;input type=&#8221;checkbox&#8221; name=&#8221;seo&#8221; value=&#8221;nofollow&#8221; id=&#8221;nofollow&#8221; &lt;?php xfn_check(&#8216;seo&#8217;, &#8216;nofollow&#8217;); ?&gt; /&gt;<br />
&lt;?php _e(&#8216;nofollow&#8217;) ?&gt;&lt;/label&gt;<br />
&lt;/fieldset&gt;&lt;/td&gt;<br />
&lt;/tr&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://analysisandreview.com/wordpress/how-to-add-nofollow-to-blogroll-wordpress-2-8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing the excerpt length, wordpress 2.9</title>
		<link>http://analysisandreview.com/wordpress/changing-the-excerpt-length-wordpress-2-8/</link>
		<comments>http://analysisandreview.com/wordpress/changing-the-excerpt-length-wordpress-2-8/#comments</comments>
		<pubDate>Tue, 04 Aug 2009 15:38:54 +0000</pubDate>
		<dc:creator>Kurt</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[excerpt lenth]]></category>

		<guid isPermaLink="false">http://analysisandreview.com/?p=611</guid>
		<description><![CDATA[Changing the excerpt length in WordPress 2.9 isn&#8217;t hard at all. You&#8217;ll need to add some php to your functions.php to make this happen. I&#8217;ve had to modify this to work in wordpress version 2.9 and have tested it up to wordpress 2.9.1 add the following to your functions.php right below the &#60;?php at the ]]></description>
			<content:encoded><![CDATA[<p>Changing the excerpt length in WordPress 2.9 isn&#8217;t hard at all. You&#8217;ll need to add some php to your functions.php to make this happen.<span id="more-611"></span></p>
<p>I&#8217;ve had to modify this to work in wordpress version 2.9 and have tested it up to wordpress 2.9.1</p>
<p>add the following to your functions.php right below the &lt;?php at the top of the functions.php file</p>
<pre class="brush: php; title: ; notranslate">
function my_wp_trim_excerpt($text) { // Fakes an excerpt if needed

if ( '' == $text ) {
$text = get_the_content('');
$text = apply_filters('the_content', $text);
$text = str_replace(']]&amp;gt;', ']]&amp;gt;', $text);
$text = strip_tags($text, '

');
$excerpt_length = 50;
$words = explode(' ', $text, $excerpt_length + 1);
if (count($words) &amp;gt; $excerpt_length) {
array_pop($words);
array_push($words, ' ... &lt;a href=&quot;'. get_permalink() . '&quot;&gt;READ MORE&lt;/a&gt;');
$text = implode(' ', $words);
}
}
return $text;
}
remove_filter('get_the_excerpt', 'wp_trim_excerpt');
add_filter('get_the_excerpt', 'my_wp_trim_excerpt');</pre>
<p>Change $excerpt_length = apply_filters(&#8216;excerpt_length&#8217;, <strong><span style="color: #ff0000">35</span></strong>);</p>
<p>where <strong><span style="color: #ff0000">35</span></strong> is the number of words you want in your excerpt</p>
]]></content:encoded>
			<wfw:commentRss>http://analysisandreview.com/wordpress/changing-the-excerpt-length-wordpress-2-8/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>How to rotate adsense ads based on author name</title>
		<link>http://analysisandreview.com/wordpress/rotate-adsense-based-on-author-name-wordpress/</link>
		<comments>http://analysisandreview.com/wordpress/rotate-adsense-based-on-author-name-wordpress/#comments</comments>
		<pubDate>Fri, 31 Jul 2009 20:25:00 +0000</pubDate>
		<dc:creator>Kurt</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[adsense]]></category>
		<category><![CDATA[author]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[revenue]]></category>

		<guid isPermaLink="false">http://analysisandreview.com/?p=470</guid>
		<description><![CDATA[So do you want to know how to add adsense to your wordpress blog based on the author of the post? Adding adsense based on user name or author is easy with a little PHP magic. Using this code your revenue sharing arrangement will work out so the writers AdSense code will be used only ]]></description>
			<content:encoded><![CDATA[<p>So do you want to know how to add adsense to your wordpress blog based on the author of the post? <span id="more-470"></span></p>
<div id="attachment_471" class="wp-caption alignright" style="width: 310px"><img class="size-medium wp-image-471" src="http://analysisandreview.com/wp-content/blogs.dir/5/files/uploads/2009/07/google-adsense-rotate-ads-based-on-author-300x248.jpg" alt="Share adsense with authors based on author name." width="300" height="248" /><p class="wp-caption-text">Share adsense with authors based on author name.</p></div>
<p>Adding adsense based on user name or author is easy with a little PHP magic.<br />
Using this code your revenue sharing arrangement will work out so the writers AdSense code will be used only on the articles with which they write. Revenue generated from articles that the authors have written is all applied to the users adsense ID. The actual java script that google AdSense produces when you generate an ad is what is used within the HTML produced buy the wordpress loop.</p>
<p>I like this form of revenue sharing because the AdSense revenue is based on pageviews and clicks for each author, the writer is getting exactly what he or she earned based on what they have written and the traffic it brings to your WordPress blog.</p>
<p>In order to add the adsense based on the author of the post you&#8217;ll need each author to sign up for adsense and email you a copy of a ad they generated for what ever size box (ad unit) you&#8217;re defaulting for your blog.</p>
<p>So lets say your authors email you this adsense code:</p>
<p>&lt;script type=&#8221;text/javascript&#8221;&gt;&lt;!&#8211;<br />
google_ad_client = &#8220;<span style="color: #ff0000">pub-1345304564559123</span>&#8220;;<br />
/* 336&#215;280, created 7/31/09 */<br />
google_ad_slot = &#8220;<span style="color: #339966">1237752456</span>&#8220;;<br />
google_ad_width = 336;<br />
google_ad_height = 280;<br />
//&#8211;&gt;<br />
&lt;/script&gt;<br />
&lt;script type=&#8221;text/javascript&#8221;<br />
src=&#8221;http://pagead2.googlesyndication.com/pagead/show_ads.js&#8221;&gt;<br />
&lt;/script&gt;</p>
<p>The adsense revenue sharing script will be used to replace the &#8220;<span style="color: #ff0000">google ad client</span>&#8221; and &#8220;<span style="color: #339966">google ad slot</span>&#8221; based on author user name.</p>
<p>So you need to copy the &#8220;google ad client&#8221; ID and the &#8220;google ad slot&#8221; ID &#8211; above they are &#8220;<span style="color: #ff0000">pub-1345304564559123</span>&#8221; and &#8220;<span style="color: #339966">1237752456</span>&#8221;</p>
<p>Now insert all those google ID&#8217;s as seen below into the php script highlighted below as a quote.</p>
<p>You want to insert the entire below code snippet into your single.php file where ever you want the google adsense rotation code to show up. Usually if you want the adsense ad unit to show up at the bottom of the post just copy paste the below code directly above</p>
<p>&lt;?php the_tags(&#8216;&lt;span id=&#8221;tags&#8221;&gt;&lt;strong&gt;&#8217;.__(&#8216;Tagged as:&#8217;,).&#8217;&lt;/strong&gt; &#8216;, &#8216;, &#8216;, &#8216;&lt;/span&gt;&#8217;); ?&gt;</p>
<p><span style="text-decoration: underline"><strong>or above</strong></span></p>
<p>&lt;?php comments_template(); ?&gt;</p>
<p>Single.php is located in wp-content/wp-themes/&#8221;your-theme&#8221;/single.php</p>
<p>In order to get your adsense code to rotate based on author you need to replace the &#8220;<span style="color: #339966">green</span>&#8221; item below with your Author name as seen in the wordpress admin panel.</p>
<p>Replace the &#8220;<span style="color: #ff0000">red</span>&#8221; item below with your Author&#8217;s google pub-ID that they sent you via email.</p>
<p>Replace the &#8220;<span style="color: #ff00ff">pink</span>&#8221; item below with your Author&#8217;s google ad slot ID that they sent you via email.</p>
<blockquote><p>&lt;?php function get_ad_client($author) {<br />
if($author == &#8216;<span style="color: #008000">username1</span>&#8216;)<br />
return &#8216;pub-<span style="color: #ff0000">userspubIDhere</span>&#8216;;<br />
elseif ($author==&#8217;<span style="color: #008000">username2</span>&#8216;)<br />
return &#8216;pub-<span style="color: #ff0000">userspubIDhere</span>&#8216;;<br />
else // default, no author found<br />
return &#8216;pub-<span style="color: #ff0000">DefaultPubIDhere</span>&#8216;;<br />
} ?&gt;<br />
&lt;?php function get_ad_slot($author) {<br />
if($author == &#8216;<span style="color: #008000">username1</span>&#8216;)<br />
return &#8216;<span style="color: #ff00ff">put-ad-slot-number-here</span>&#8216;;<br />
elseif ($author==&#8217;<span style="color: #008000">username2</span>&#8216;)<br />
return &#8216;<span style="color: #ff00ff">put-ad-slot-number-here</span>&#8216;;<br />
else // default, no author found<br />
return &#8216;<span style="color: #ff00ff">put-ad-slot-number-here</span>&#8216;;</p>
<p>} ?&gt;<br />
&lt;script type=&#8221;text/javascript&#8221;&gt;&lt;!&#8211;<br />
google_ad_client = &#8220;&lt;?php echo get_ad_client(get_the_author());?&gt;&#8221;;<br />
/* 336&#215;280, top fantasy football */<br />
google_ad_slot = &#8220;&lt;?php echo get_ad_slot(get_the_author());?&gt;&#8221;;<br />
google_ad_width = <span style="color: #333399">336</span>;<br />
google_ad_height = <span style="color: #333399">280</span>;<br />
//&#8211;&gt;<br />
&lt;/script&gt;<br />
&lt;script type=&#8221;text/javascript&#8221;<br />
src=&#8221;http://pagead2.googlesyndication.com/pagead/show_ads.js&#8221;&gt;<br />
&lt;/script&gt;<br />
&lt;br&gt;&lt;br&gt;</p></blockquote>
<p>The final results will look like this &#8211; use this code if you&#8217;re pasting it into your single.php file</p>
<pre class="brush: php; title: ; notranslate">

&amp;lt;!--
google_ad_client = &amp;quot;&quot;;
/* BLOG 336 BIG BOX */
google_ad_slot = &quot;&quot;;
google_ad_width = 336;
google_ad_height = 280;
//--&amp;gt;
</pre>
<p>That&#8217;s all folks! You now will have google adsense show up on your post page in wordpress based on the <strong>Author</strong> name of the user. The author name is set in the admin panel for each user name. Let me know if you have issues or questions.</p>
]]></content:encoded>
			<wfw:commentRss>http://analysisandreview.com/wordpress/rotate-adsense-based-on-author-name-wordpress/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

