<?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>(Anti) Social Development &#187; Code</title>
	<atom:link href="http://www.kimwoodbridge.com/tag/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kimwoodbridge.com</link>
	<description>Kim Woodbridge WordPress Consultant</description>
	<lastBuildDate>Thu, 09 Feb 2012 05:01:35 +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>How to Update the Copyright Date on your WordPress Blog Automatically</title>
		<link>http://www.kimwoodbridge.com/how-to-update-the-copyright-date-on-your-wordpress-blog-automatically/</link>
		<comments>http://www.kimwoodbridge.com/how-to-update-the-copyright-date-on-your-wordpress-blog-automatically/#comments</comments>
		<pubDate>Tue, 28 Dec 2010 05:01:43 +0000</pubDate>
		<dc:creator>Kim Woodbridge</dc:creator>
				<category><![CDATA[WordPress Tips]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Copyright Date]]></category>
		<category><![CDATA[Example]]></category>
		<category><![CDATA[Howto]]></category>

		<guid isPermaLink="false">http://www.kimwoodbridge.com/?p=10173</guid>
		<description><![CDATA[How to update the copyright date automatically.<p>Post from: <a href="http://www.kimwoodbridge.com">(Anti) Social Development</a><br/><br/><a href="http://www.kimwoodbridge.com/how-to-update-the-copyright-date-on-your-wordpress-blog-automatically/">How to Update the Copyright Date on your WordPress Blog Automatically</a></p>
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/horiavarlan/4273272605/" title="Large copyright graffiti sign on cream colored wall by Horia Varlan" rel="nofollow" target="_blank"><img src="http://www.kimwoodbridge.com/wp-content/uploads/2010/12/4273272605_a323c07319_m.jpg" alt="" title="Large copyright graffiti sign on cream colored wall" width="240" height="160" class="left frame size-full wp-image-10240" /></a></p>
<p>Since it is almost 2011, people are asking me to change the copyright date at the bottom of their WordPress blog.</p>
<p>You can, however, do this automatically by using a piece of code that displays the current year.  Once this is added to your template, you don&#8217;t need to manually update it again.</p>
<p><span id="more-10173"></span></p>
<p>This will display the current year.</p>
<blockquote><p>
&lt;?php echo date(&#8220;Y&#8221;); ?>
</p></blockquote>
<p>At the bottom of this site, I have the following.</p>
<blockquote><p>
Copyright © 2008 &#8211; 2010 (Anti) Social Development All rights reserved
</p></blockquote>
<p>The following code is used.</p>
<blockquote><p>
Copyright &copy; 2008 &#8211; &lt;?php echo date(&#8220;Y&#8221;); ?>  &lt;?php bloginfo(&#8216;name&#8217;); ?>  All rights reserved
</p></blockquote>
<p>This is copyright, the code for the copyright symbol, the year I started the site, the current year, the name of the site, and All rights reserved.</p>
<p>If you add that little piece of code to your template &#8211; this is usually the footer file &#8211; you don&#8217;t have to worry about changing the date manually again.</p>
<p><small>photo credit: <a href="http://www.flickr.com/photos/horiavarlan/4273272605/" title="Large copyright graffiti sign on cream colored wall by Horia Varlan" rel="nofollow" target="_blank">Horia Varlan</a></small></p>
<p>Post from: <a href="http://www.kimwoodbridge.com">(Anti) Social Development</a><br/><br/><a href="http://www.kimwoodbridge.com/how-to-update-the-copyright-date-on-your-wordpress-blog-automatically/">How to Update the Copyright Date on your WordPress Blog Automatically</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kimwoodbridge.com/how-to-update-the-copyright-date-on-your-wordpress-blog-automatically/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>All Studiopress Themes for WordPress 25% off</title>
		<link>http://www.kimwoodbridge.com/all-studiopress-themes-for-wordpress-25-off/</link>
		<comments>http://www.kimwoodbridge.com/all-studiopress-themes-for-wordpress-25-off/#comments</comments>
		<pubDate>Wed, 24 Nov 2010 05:01:14 +0000</pubDate>
		<dc:creator>Kim Woodbridge</dc:creator>
				<category><![CDATA[WordPress Themes]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Discount]]></category>
		<category><![CDATA[Genesis]]></category>
		<category><![CDATA[Studiopress]]></category>
		<category><![CDATA[Themes]]></category>
		<category><![CDATA[WordPress Tips]]></category>

		<guid isPermaLink="false">http://www.kimwoodbridge.com/?p=9912</guid>
		<description><![CDATA[I am a huge fan of the Studiopress themes for WordPress and while I don&#8217;t use them on my this site, I use them on a number of client sites and on my Mary Shelley site and new Watch Doctor Who project. Now through next Tuesday November 30th everything all Studiopress is 25% off. Every [...]<p>Post from: <a href="http://www.kimwoodbridge.com">(Anti) Social Development</a><br/><br/><a href="http://www.kimwoodbridge.com/all-studiopress-themes-for-wordpress-25-off/">All Studiopress Themes for WordPress 25% off</a></p>
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.kimwoodbridge.com/wp-content/uploads/2010/11/studiopress.jpg" rel="lightbox[9912]" title="studiopress"><img src="http://www.kimwoodbridge.com/wp-content/uploads/2010/11/studiopress.jpg" alt="" title="studiopress" width="240" height="183" class="left frame size-full wp-image-9913" /></a></p>
<p>I am a huge fan of the <a href="http://www.shareasale.com/r.cfm?b=241369&#038;u=420586&#038;m=28169&#038;urllink=&#038;afftrack=" title="Studiopress" rel="nofollow" target="_blank">Studiopress themes</a> for WordPress and while I don&#8217;t use them on my this site, I use them on a number of client sites and on my <a href="http://www.marywshelley.com/" title="Mary Shelley and Frankenstein" target="_blank">Mary Shelley</a> site and new <a href="http://watch-doctor-who.com/" title="Watch Doctor Who" target="_blank">Watch Doctor Who</a> project.</p>
<p>Now through next Tuesday November 30th everything all Studiopress is 25% off.  Every theme and even the <a href="http://www.shareasale.com/r.cfm?b=242693&#038;u=420586&#038;m=28169&#038;urllink=&#038;afftrack=" title="Pro Plus All-Theme package" rel="nofollow" target="_blank">Pro Plus All-Theme package</a>.  If you were thinking about buying <a href="http://www.shareasale.com/r.cfm?b=242694&#038;u=420586&#038;m=28169&#038;urllink=&#038;afftrack=" title="Genesis theme" target="_blank" rel="nofollow">Genesis and a child theme</a> or even every theme, now is the time to do it.</p>
<p><span id="more-9912"></span></p>
<p>To get 25% off use the discount code <strong>BLACK</strong>.</p>
<p>All Studiopress discount codes will be invalid after next Tuesday so this really is the time to buy.  I purchased the <a href="http://www.shareasale.com/r.cfm?b=242693&#038;u=420586&#038;m=28169&#038;urllink=&#038;afftrack=" title="Pro Plus All-Theme package" rel="nofollow" target="_blank">Pro Plus All-Theme package</a> quite some time ago and couldn&#8217;t be happier.  The themes are excellent, you get access to new releases and the support is some of the best out there.  I don&#8217;t think I&#8217;ve ever had a question that I couldn&#8217;t find an answer to on the support forums.</p>
<p>Here is a small sample of the Studiopress themes.</p>
<table cellspacing="5px">
<tr>
<td><a href="http://www.shareasale.com/r.cfm?b=242697&#038;u=420586&#038;m=28169&#038;urllink=&#038;afftrack=" title="Studiopress" rel="nofollow" target="_blank"><img src="http://www.kimwoodbridge.com/wp-content/uploads/2010/11/agent1-300x208.jpg" alt="" title="agent" width="300" height="208" class="alignleft size-medium wp-image-9940" /></a>
</td>
<td><a href="http://www.shareasale.com/r.cfm?b=242699&#038;u=420586&#038;m=28169&#038;urllink=&#038;afftrack=" title="Studiopress" rel="nofollow" target="_blank"><img src="http://www.kimwoodbridge.com/wp-content/uploads/2010/11/church1-300x207.jpg" alt="" title="church" width="300" height="207" class="alignleft size-medium wp-image-9941" /></a>
</td>
</tr>
<tr>
<td><a href="http://www.shareasale.com/r.cfm?b=242697&#038;u=420586&#038;m=28169&#038;urllink=&#038;afftrack=" title="Studiopress" rel="nofollow" target="_blank">AgentPress</a>
</td>
<td><a href="http://www.shareasale.com/r.cfm?b=242699&#038;u=420586&#038;m=28169&#038;urllink=&#038;afftrack=" title="Studiopress" rel="nofollow" target="_blank">Church</a>
</td>
</tr>
<tr>
<td><a href="http://www.shareasale.com/r.cfm?b=255438&#038;u=420586&#038;m=28169&#038;urllink=&#038;afftrack=" title="Studiopress" rel="nofollow" target="_blank"><img src="http://www.kimwoodbridge.com/wp-content/uploads/2010/11/lexicon1-300x222.jpg" alt="" title="lexicon" width="300" height="222" class="alignleft size-medium wp-image-9939" /></a>
</td>
<td><a href="http://www.shareasale.com/r.cfm?b=242709&#038;u=420586&#038;m=28169&#038;urllink=&#038;afftrack=" title="Studiopress" rel="nofollow" target="_blank"><img src="http://www.kimwoodbridge.com/wp-content/uploads/2010/11/lifestyle1-300x209.jpg" alt="" title="lifestyle" width="300" height="209" class="alignleft size-medium wp-image-9942" /></a>
</td>
</tr>
<tr>
<td><a href="http://www.shareasale.com/r.cfm?b=255438&#038;u=420586&#038;m=28169&#038;urllink=&#038;afftrack=" title="Studiopress" rel="nofollow" target="_blank">Lexicon</a>
</td>
<td><a href="http://www.shareasale.com/r.cfm?b=242709&#038;u=420586&#038;m=28169&#038;urllink=&#038;afftrack=" title="Studiopress" rel="nofollow" target="_blank">Lifestyle</a>
</td>
</tr>
</table>
<p>Don&#8217;t forget &#8211; the discount code to use at checkout is <strong>BLACK</strong>.</p>
<p>Happy Thanksgiving!</p>
<p>The Studiopress links are affiliate links.  If I didn&#8217;t like them, I wouldn&#8217;t recommend them. ;-)</p>
<p>Post from: <a href="http://www.kimwoodbridge.com">(Anti) Social Development</a><br/><br/><a href="http://www.kimwoodbridge.com/all-studiopress-themes-for-wordpress-25-off/">All Studiopress Themes for WordPress 25% off</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kimwoodbridge.com/all-studiopress-themes-for-wordpress-25-off/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to Add Facebook Like on WordPress.com Blogs</title>
		<link>http://www.kimwoodbridge.com/how-to-add-facebook-like-on-wordpress-com-blogs/</link>
		<comments>http://www.kimwoodbridge.com/how-to-add-facebook-like-on-wordpress-com-blogs/#comments</comments>
		<pubDate>Mon, 14 Jun 2010 04:01:54 +0000</pubDate>
		<dc:creator>Kim Woodbridge</dc:creator>
				<category><![CDATA[Facebook]]></category>
		<category><![CDATA[WordPress Tips]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Facebook Like]]></category>
		<category><![CDATA[Solution]]></category>
		<category><![CDATA[WordPress.com]]></category>

		<guid isPermaLink="false">http://www.kimwoodbridge.com/?p=8581</guid>
		<description><![CDATA[How to add Facebook Like to WordPress.com sites<p>Post from: <a href="http://www.kimwoodbridge.com">(Anti) Social Development</a><br/><br/><a href="http://www.kimwoodbridge.com/how-to-add-facebook-like-on-wordpress-com-blogs/">How to Add Facebook Like on WordPress.com Blogs</a></p>
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/kwbridge/4682642503/" title="Raleigh Park Place (by kwbridge)"><img src="http://www.kimwoodbridge.com/wp-content/uploads/2010/06/4682642503_b56f246dbe_m.jpg" alt="" title="4682642503_b56f246dbe_m" width="240" height="180" class="left frame size-full wp-image-8590" /></a></p>
<p>Recently I was asked how to add the Facebook Like feature to a WordPress.com blog.</p>
<p>Since I write about the WordPress. org or self-hosted version, I had to look this up.  My work with WordPress.com is mostly with moving people to self-hosted WordPress.</p>
<p>Since plugins can&#8217;t be added to WordPress.com blogs and the templates can&#8217;t be modified, I honestly didn&#8217;t think I was going to find a solution for this.  (Well, some extras can be purchased but I&#8217;m not going to get into the intricacies of WordPress.com in this article.)</p>
<p>But, I did.</p>
<p><span id="more-8581"></span></p>
<ol>
<li>Go to <a href="http://getsociallive.com/">Get Social Live</a></li>
<li>Add the post title and the url to the post in the first two fields.  Unfortunately, this will need to be added on a post by post basis.  It can&#8217;t be added to the overall site.
</li>
<li>Select Facebook Like</li>
<li>Click on the Get Social Button</li>
<li>The code you need will show up and you can copy and paste it into your post.
<p><a href="http://www.kimwoodbridge.com/wp-content/uploads/2010/06/sociallive.jpg" rel="lightbox[8581]" title="sociallive"><img src="http://www.kimwoodbridge.com/wp-content/uploads/2010/06/sociallive.jpg" alt="" title="sociallive" width="438" height="637" class="aligncenter frame size-full wp-image-8596" /></a>
</li>
</ol>
<p>When you click on the Like Button in your post, you will be take to a social live page that looks like the following.</p>
<p><a href="http://www.kimwoodbridge.com/wp-content/uploads/2010/06/sociallike.jpg" rel="lightbox[8581]" title="sociallike"><img src="http://www.kimwoodbridge.com/wp-content/uploads/2010/06/sociallike.jpg" alt="" title="sociallike" width="468" height="392" class="aligncenter frame size-full wp-image-8597" /></a></p>
<p>You will then need to click Like again on this page, to actually like the post and have it posted to your Facebook wall.</p>
<p>So, while this is a clunky solution for WordPress.com users, I suppose it&#8217;s better than nothing.  And based on my tests, it will work on self hosted WordPress sites too.  I&#8217;m assuming it would work on any type of site.</p>
<p>Do you know of any different or better ways to add Facebook like to WordPress.com sites?</p>
<p>Note: The photo doesn&#8217;t really have anything to do with this post other than that it&#8217;s my &#8220;new&#8221; bike and I really &#8220;like&#8221; it ;-)</p>
<p style="text-align:left;" class="getsocial"><a title="Like This!" href="http://getsociallive.com/gslike.php?likeurl=http%3A%2F%2Fkimwoodbridge.com%2Fhow-to-add-facebook-like-on-wordpress-com-blogs&amp;liketitle=How%20to%20Add%20Facebook%20Like%20on%20WordPress.com%20Blogs" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="http://getsocialserver.files.wordpress.com/2010/04/gslk3.png" width="49" height="23" alt="Like This!" /></a></p>
<p>Post from: <a href="http://www.kimwoodbridge.com">(Anti) Social Development</a><br/><br/><a href="http://www.kimwoodbridge.com/how-to-add-facebook-like-on-wordpress-com-blogs/">How to Add Facebook Like on WordPress.com Blogs</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kimwoodbridge.com/how-to-add-facebook-like-on-wordpress-com-blogs/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>3 Ways to Exclude Pages from the WordPress Navigation Bar</title>
		<link>http://www.kimwoodbridge.com/3-ways-to-exclude-pages-from-the-wordpress-navigation-bar/</link>
		<comments>http://www.kimwoodbridge.com/3-ways-to-exclude-pages-from-the-wordpress-navigation-bar/#comments</comments>
		<pubDate>Thu, 03 Jun 2010 04:01:32 +0000</pubDate>
		<dc:creator>Kim Woodbridge</dc:creator>
				<category><![CDATA[WordPress Plugins]]></category>
		<category><![CDATA[WordPress Tips]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Exclude Pages]]></category>
		<category><![CDATA[Menus]]></category>
		<category><![CDATA[Navigation Bar]]></category>
		<category><![CDATA[Plugins]]></category>

		<guid isPermaLink="false">http://www.kimwoodbridge.com/?p=8355</guid>
		<description><![CDATA[3 Ways to Exclude Pages from the WordPress Navigation Bar<p>Post from: <a href="http://www.kimwoodbridge.com">(Anti) Social Development</a><br/><br/><a href="http://www.kimwoodbridge.com/3-ways-to-exclude-pages-from-the-wordpress-navigation-bar/">3 Ways to Exclude Pages from the WordPress Navigation Bar</a></p>
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/duncan/3248229333/" title="Excluding Tiara's (by duncan)" rel="nofollow"><img src="http://www.kimwoodbridge.com/wp-content/uploads/2010/05/3248229333_b83dda8b84_m.jpg" alt="" title="3248229333_b83dda8b84_m" width="240" height="180" class="left frame size-full wp-image-8408" /></a></p>
<p>Many navigation bars in WordPress are created dynamically with this piece of code <br /> <strong>&lt;?php wp_list_pages();?></strong></p>
<p>Since it is created dynamically, people often wonder how to exclude certain pages from the navigation.  I have a lot more pages than I want listed there and I need a way to remove them.</p>
<p>Here I&#8217;m going to list three ways that you can do that.  One is a code solution and the other two require the use of a plugin.</p>
<p><span id="more-8355"></span></p>
<p>I have always attempted to use a code rather than a plugin solution but when there are a lot of pages to exclude or when the site is being created for a client, it may be best to use a plugin.  Right now, I have so many pages excluded through the code that it may be easier for me to switch to a plugin in order to manage it.  Especially since I have a navigation menu at the top and at the bottom of the page.</p>
<h3>Code</h3>
<p>Way back I wrote an article about <a href="http://www.kimwoodbridge.com/how-to-exclude-pages-from-the-wordpress-navigation-bar/" title="How to Exclude Pages from the WordPress Navigation Bar">how to exclude pages from the WordPress navigation bar</a> manually.  Instead of repeating that information, I have linked to the article.  Nothing has changed and the exclude code still works perfectly.</p>
<h3>Exclude Pages Plugin</h3>
<p>The <a href="http://wordpress.org/extend/plugins/exclude-pages/" title="Exclude Pages Plugin" rel="nofollow">Exclude Pages Plugin </a> adds a checkbox to the Edit page screen that says &#8220;include this page in menus&#8221;.  When the plugin is installed the checkbox is checked by default.  If you want to exclude the page, simply uncheck that checkbox.</p>
<h3>pageMash Plugin</h3>
<p>The <a href="http://wordpress.org/extend/plugins/pagemash/" title="pageMash Plugin" rel="nofollow">pageMash plugin</a> is the one that I prefer to install on client sites because it has additional functionality.  In addition to hiding pages from the navigation bar, this plugin also provides a drag and drop interface that can be used to manage the order in which the pages appear on the navigation bar.  It also provides a quick way to edit and rename the pages. Once installed, pageMash will be under the Pages menu.</p>
<p>Do you exclude pages from your navigation bar?  Do you use any of these methods?  Or do you use a different plugin that you like better?</p>
<p><small>photo credit: <a href="">duncan</a> (Wow!  No tiaras with an apostrophe and an incorrect spelling of jewelry &#8211; gotta love it.)</small></p>
<p>Post from: <a href="http://www.kimwoodbridge.com">(Anti) Social Development</a><br/><br/><a href="http://www.kimwoodbridge.com/3-ways-to-exclude-pages-from-the-wordpress-navigation-bar/">3 Ways to Exclude Pages from the WordPress Navigation Bar</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kimwoodbridge.com/3-ways-to-exclude-pages-from-the-wordpress-navigation-bar/feed/</wfw:commentRss>
		<slash:comments>26</slash:comments>
		</item>
		<item>
		<title>2 Ways to Like Add Facebook Like to Your WordPress Site</title>
		<link>http://www.kimwoodbridge.com/2-ways-to-like-add-facebook-like-to-your-wordpress-site/</link>
		<comments>http://www.kimwoodbridge.com/2-ways-to-like-add-facebook-like-to-your-wordpress-site/#comments</comments>
		<pubDate>Wed, 28 Apr 2010 04:01:41 +0000</pubDate>
		<dc:creator>Kim Woodbridge</dc:creator>
				<category><![CDATA[Facebook]]></category>
		<category><![CDATA[WordPress Tips]]></category>
		<category><![CDATA[Button]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Like]]></category>
		<category><![CDATA[Plugin]]></category>

		<guid isPermaLink="false">http://www.kimwoodbridge.com/?p=7991</guid>
		<description><![CDATA[2 Ways to Add the Facebook Like Button to Your WordPress Site<p>Post from: <a href="http://www.kimwoodbridge.com">(Anti) Social Development</a><br/><br/><a href="http://www.kimwoodbridge.com/2-ways-to-like-add-facebook-like-to-your-wordpress-site/">2 Ways to Like Add Facebook Like to Your WordPress Site</a></p>
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/found_drama/208217664/" title="Like Cola? (2) (by found_drama)" rel="nofollow"><img src="http://farm1.static.flickr.com/85/208217664_45e40433f2_m.jpg" title="Like Cola? (2) (by found_drama)" alt="Like Cola? (2) (by found_drama)" width="240" height="192" class="left frame" /></a></p>
<p>Facebook wants us to like things rather than fan or share them.  I&#8217;m not, like, really liking, this change, like, you know?  It makes me think of people who use like every three words they say and about passing notes in junior high.  &#8220;Chris &#8211; do you think Billy likes me?  Can you ask him?  But don&#8217;t tell him I wanted to know.&#8221;</p>
<p>So, we can now add like buttons to our website.  What&#8217;s cool about it is that it will show the little avatars of the people who liked your article and will post on their wall and newstream that they liked the article (if their settings allow for that).</p>
<p><span id="more-7991"></span></p>
<p>There are two ways to add the like button in WordPress.</p>
<h3>Code</h3>
<p>The code method is the first way.  I would add the following to the bottom of my post in the single post page.  It&#8217;s usually single.php under Appearance > Editor</p>
<blockquote>
<pre name="html">
&lt;iframe src="http://www.facebook.com/plugins/like.php?href=
&lt;?php the_permalink(); ?>&amp;layout=standard&amp;show_faces=true
&amp;width=450&amp;action=like&amp;colorscheme=light" scrolling="no"
frameborder="0" allowTransparency="true" style="border:none;
overflow:hidden; width:450px; height:px">&lt;/iframe>
</pre>
</blockquote>
<p>You can change some of the variables such as the width, change scrolling to yet, add a border, etc.  Note that the url being shared is</p>
<blockquote>
<pre name="html">
&lt;?php the_permalink(); ?>
</pre>
</blockquote>
<p>That is so it pulls the specific WordPress post that is being liked.  Make sure that the code added is still within the loop on the single.php page.  I would put it below </p>
<blockquote>
<pre name="html">
&lt;?php the_excerpt(); ?>

or 

&lt;?php the_content(); ?>
</pre>
</blockquote>
<p>I have tried putting it at the top of the post but even when I set the height on the code, it pushes the beginning of the post down too far.  It&#8217;s almost like (no pun intended) that it&#8217;s making room for the hoards of Facebook users who are going to be liking your post.  If you&#8217;ve found workaround for this please let me know.</p>
<p>If you want to read more about this code or play with the fancy code generator it is available on the <a href="http://developers.facebook.com/docs/reference/plugins/like" title="Facebook Developer's Like Button Page" rel="nofollow">Facebook Developer&#8217;s Like Button Page</a>.</p>
<p><a href="http://www.kimwoodbridge.com/wp-content/uploads/2010/04/fb_like.jpg" rel="lightbox[7991]" title="fb_like"><img src="http://www.kimwoodbridge.com/wp-content/uploads/2010/04/fb_like.jpg" alt="" title="fb_like" width="390" height="82" class="aligncenter frame size-full wp-image-7999" /></a></p>
<h3>Plugin</h3>
<p>You can also install the WordPress plugin called <a href="http://wordpress.org/extend/plugins/facebook-like-button/" title="Facebook Like Button" rel="nofollow">Facebook Like Button</a>.  It basically does what the code above does but there was one thing I didn&#8217;t like about it.  It adds the like code everywhere and not just to posts.  I might want someone to like my Services page but it doesn&#8217;t make a lot of sense to have a like button on my contact page.  It is, however, super easy to set up.  Just be sure to select the iframe option in the plugin settings.</p>
<p>So there you have it &#8211; two ways to add the Facebook like button to your WordPress site.  Hope you liked it.</p>
<p style="text-align:left;" class="getsocial"><a title="Like This!" href="http://getsociallive.com/gslike.php?likeurl=http%3A%2F%2Fwww.kimwoodbridge.com%2F2-ways-to-like-add-facebook-like-to-your-wordpress-site%2F&amp;liketitle=2%20Ways%20to%20Like%20Add%20Facebook%20Like%20to%20Your%20WordPress%20Site" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="http://getsocialserver.files.wordpress.com/2010/04/gslk4.png" width="49" height="23" alt="Like This!" /></a></p>
<p><small>photo credit: <a href="http://www.flickr.com/photos/found_drama/208217664/" title="Like Cola? (2) (by found_drama)" rel="nofollow">found_drama</a></small></p>
<p>Post from: <a href="http://www.kimwoodbridge.com">(Anti) Social Development</a><br/><br/><a href="http://www.kimwoodbridge.com/2-ways-to-like-add-facebook-like-to-your-wordpress-site/">2 Ways to Like Add Facebook Like to Your WordPress Site</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kimwoodbridge.com/2-ways-to-like-add-facebook-like-to-your-wordpress-site/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
		<item>
		<title>How to Add the Post Thumbnail Feature to your WordPress Installation</title>
		<link>http://www.kimwoodbridge.com/how-to-add-the-post-thumbnail-feature-to-your-wordpress-installation/</link>
		<comments>http://www.kimwoodbridge.com/how-to-add-the-post-thumbnail-feature-to-your-wordpress-installation/#comments</comments>
		<pubDate>Thu, 08 Apr 2010 04:01:42 +0000</pubDate>
		<dc:creator>Kim Woodbridge</dc:creator>
				<category><![CDATA[WordPress Tips]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Function]]></category>
		<category><![CDATA[Post Thumbnail]]></category>
		<category><![CDATA[Templates]]></category>
		<category><![CDATA[Theme]]></category>

		<guid isPermaLink="false">http://www.kimwoodbridge.com/?p=7730</guid>
		<description><![CDATA[How to add post thumbnails to your WordPress theme.<p>Post from: <a href="http://www.kimwoodbridge.com">(Anti) Social Development</a><br/><br/><a href="http://www.kimwoodbridge.com/how-to-add-the-post-thumbnail-feature-to-your-wordpress-installation/">How to Add the Post Thumbnail Feature to your WordPress Installation</a></p>
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/25182350@N03/2981062354/" title="importance of a nail (by red twolips)" rel="nofollow"><img src="http://www.kimwoodbridge.com/wp-content/uploads/2010/04/2981062354_793758d452_m.jpg" title="importance of a nail (by red twolips)" alt="importance of a nail (by red twolips)" width="240" height="180" class="left frame" /></a></p>
<p>One of the new features in <a href="http://codex.wordpress.org/Version_2.9" title="WordPress 2.9" rel="nofollow">WordPress 2.9+</a> was support for the Post Thumbnail feature.  Unfortunately, this doesn&#8217;t work by default and the function and code need to be added to the theme so that the feature is available.  Once it is available, however, it is really super useful.</p>
<p>If you aren&#8217;t comfortable editing your template files, find someone who will do this for you.  Some newer themes have this functionality already built in.</p>
<p><span id="more-7730"></span></p>
<ol>
<li>
Add the following code to your functions.php file</p>
<blockquote>
<pre name="php">
&lt;?php if ( function_exists( 'add_theme_support' ) )
add_theme_support( 'post-thumbnails' ); ?>
</pre>
</blockquote>
<p>I recommend making a copy of the file before editing it &#8211; I&#8217;ve messed up my functions file plenty of times ;-)
</li>
<li>You will now see the Post Thumbnail box on your Edit/Add New post screen.  It will be on the bottom right column.<br />
<a href="http://www.kimwoodbridge.com/wp-content/uploads/2010/04/post_thumbnail.jpg" rel="lightbox[7730]" title="post_thumbnail"><img src="http://www.kimwoodbridge.com/wp-content/uploads/2010/04/post_thumbnail.jpg" alt="" title="post_thumbnail" width="302" height="96" class="aligncenter frame size-full wp-image-7743" /></a>
</li>
<li>Click on Set thumbnail and you can upload an image the way that you normally do.  Instead of clicking on the Insert Into Post button, click on the Use as Thumbnail link and then Save.<br />
<a href="http://www.kimwoodbridge.com/wp-content/uploads/2010/04/use_thumbnail.jpg" rel="lightbox[7730]" title="use_thumbnail"><img src="http://www.kimwoodbridge.com/wp-content/uploads/2010/04/use_thumbnail.jpg" alt="" title="use_thumbnail" width="550" height="576" class="aligncenter frame size-full wp-image-7746" /></a><br />
The image will be displayed in the Post Thumbnail box.<br />
<a href="http://www.kimwoodbridge.com/wp-content/uploads/2010/04/thumbnail.jpg" rel="lightbox[7730]" title="thumbnail"><img src="http://www.kimwoodbridge.com/wp-content/uploads/2010/04/thumbnail.jpg" alt="" title="thumbnail" width="298" height="238" class="aligncenter frame size-full wp-image-7747" /></a>
</li>
<li>You now have a Post Thumbnail image but it doesn&#8217;t show up on your site.  The code needs to be added to the template file where you want it displayed.<br />
The code is</p>
<blockquote>
<pre name="php">
&lt;?php the_post_thumbnail(); ?>
</pre>
</blockquote>
</li>
<li>Currently I use the <a href="http://www.kimwoodbridge.com/wordpress-how-to-improve-the-archives-with-the-thumbnails-for-excerpts-plugin/" title="WordPress: How to Improve the Archives with the Thumbnails for Excerpts Plugin">Thumbnails for Excerpts plugin</a> to display a thumbnail image in my <a href="http://www.kimwoodbridge.com/category/wordpress/" title="WordPress Category">archives</a>.  I plan on adding the post thumbnail code and using the post thumbnail rather than being dependent on the plugin.  I would add the code next to the code that displays the excerpt.  Of course, since I have over 400 posts this will be quite an undertaking.</li>
</ol>
<p>As I mentioned this will should already be available on newer themes.  If you are using an older theme and want to use this feature, you will need to add the code manually.</p>
<p><small>photo credit: <a href="http://www.flickr.com/photos/25182350@N03/2981062354/" title="importance of a nail (by red twolips)" rel="nofollow">red twolips</a></small></p>
<p>Post from: <a href="http://www.kimwoodbridge.com">(Anti) Social Development</a><br/><br/><a href="http://www.kimwoodbridge.com/how-to-add-the-post-thumbnail-feature-to-your-wordpress-installation/">How to Add the Post Thumbnail Feature to your WordPress Installation</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kimwoodbridge.com/how-to-add-the-post-thumbnail-feature-to-your-wordpress-installation/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Don&#8217;t Let Your WordPress Customizations Get the Best of You</title>
		<link>http://www.kimwoodbridge.com/dont-let-your-wordpress-customizations-get-the-best-of-you/</link>
		<comments>http://www.kimwoodbridge.com/dont-let-your-wordpress-customizations-get-the-best-of-you/#comments</comments>
		<pubDate>Mon, 28 Dec 2009 05:01:02 +0000</pubDate>
		<dc:creator>Kim Woodbridge</dc:creator>
				<category><![CDATA[WordPress Tips]]></category>
		<category><![CDATA[Article]]></category>
		<category><![CDATA[Category]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Customizations]]></category>
		<category><![CDATA[Error]]></category>
		<category><![CDATA[Exclude Category]]></category>
		<category><![CDATA[Forget]]></category>
		<category><![CDATA[Mistake]]></category>
		<category><![CDATA[Not showing]]></category>
		<category><![CDATA[Post]]></category>
		<category><![CDATA[Published]]></category>
		<category><![CDATA[Theme]]></category>

		<guid isPermaLink="false">http://www.kimwoodbridge.com/?p=6652</guid>
		<description><![CDATA[My published article wasn't showing up on the site.  How my own code customizations got the best of me.<p>Post from: <a href="http://www.kimwoodbridge.com">(Anti) Social Development</a><br/><br/><a href="http://www.kimwoodbridge.com/dont-let-your-wordpress-customizations-get-the-best-of-you/">Don&#8217;t Let Your WordPress Customizations Get the Best of You</a></p>
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/metteohlendorff/1524848588/" title="Customized Dunlops (by metz79)" rel="nofollow"><img src="http://farm3.static.flickr.com/2113/1524848588_e4fb3c9a3e_m.jpg" title="Customized Dunlops (by metz79)" alt="Customized Dunlops (by metz79)" width="240" height="180" class="left frame" /></a></p>
<p>Sometimes when we do a lot of customizations to our WordPress themes we can forget that they are there and then have trouble with something and be stumped as to what the problem is.</p>
<p>I did this recently with one of my scheduled posts and an excluded category.</p>
<p>Here&#8217;s what happened.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><span id="more-6652"></span></p>
<h3>The problem</h3>
<p>I always schedule my articles to post at 12:01am on the day that I want to publish it.  Since 99% of the time I am asleep at that time, I check on the article when I get up in the morning.  I got up and the article wasn&#8217;t on the front page of my site.  I went into the admin area and saw that the article had published.  I was confused &#8211; how it can be published but also be invisible.  Also, I had just gotten up.  I am a morning person but I don&#8217;t wake up completely alert and do need some caffeine to kick in before I am fully functional.</p>
<h3>The Troubleshooting Thought Process</h3>
<p>My next thought was that since there were code examples in the article maybe something in the code was keeping the article from displaying.  In the back of my mind, however, I knew I was grasping for a solution because it had displayed fine in the preview while working on it and a code error would have shown up at that time.  I removed all of the content from the article except for the first paragraph and it still didn&#8217;t show up.  So, it wasn&#8217;t the code but I needed to eliminate that being the cause of the problem.</p>
<p>Still stumped, I decided to walk away from the computer for a couple of minutes.  I&#8217;ve learned over the years that stepping away from a problem really does help in solving it rather that stubbornly beating my head against it.</p>
<p>And then it came to me.  Check which categories the article was listed in.  And sure enough I had placed the article in a couple of articles and one of them was one that I excluded from showing up anywhere except on my portfolio page (and since I recently changed the portfolio to use pages rather than posts I didn&#8217;t even need to be excluding or even using that category anymore).</p>
<p>So, in trying to be all fancy pants with my code, excluding categories, displaying items in one location and not in others, I kept a published post from showing up anywhere on my site.  And when I was writing the article I completely forgot that I didn&#8217;t want to use that particular category because it would keep the post from showing up on the front page, archives, rss feed,etc. I removed the category from the post and it immediately displayed on the front page and throughout the site.</p>
<h3>And you?</h3>
<p>Have you ever had any of your customizations trip you up?  Have you forgotten about them and how they work?  I suppose I could list mine somewhere but until the other day, I never had a problem remembering them.</p>
<p><small>photo credit: <a href="http://www.flickr.com/photos/metteohlendorff/1524848588/" title="Customized Dunlops (by metz79)" rel="nofollow">metz79</a></small></p>
<p>Post from: <a href="http://www.kimwoodbridge.com">(Anti) Social Development</a><br/><br/><a href="http://www.kimwoodbridge.com/dont-let-your-wordpress-customizations-get-the-best-of-you/">Don&#8217;t Let Your WordPress Customizations Get the Best of You</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kimwoodbridge.com/dont-let-your-wordpress-customizations-get-the-best-of-you/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
		<item>
		<title>(Anti) Social Lists 12/27/09</title>
		<link>http://www.kimwoodbridge.com/anti-social-lists-122709/</link>
		<comments>http://www.kimwoodbridge.com/anti-social-lists-122709/#comments</comments>
		<pubDate>Sun, 27 Dec 2009 05:01:38 +0000</pubDate>
		<dc:creator>Kim Woodbridge</dc:creator>
				<category><![CDATA[Bookmarks]]></category>
		<category><![CDATA[Chain of Command]]></category>
		<category><![CDATA[Coconut Shells]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Email]]></category>
		<category><![CDATA[Favorites]]></category>
		<category><![CDATA[Funny]]></category>
		<category><![CDATA[Humor]]></category>
		<category><![CDATA[Kitten]]></category>
		<category><![CDATA[Laser]]></category>
		<category><![CDATA[Morgan Freeman]]></category>
		<category><![CDATA[Moving .com to .org]]></category>
		<category><![CDATA[Nutshell]]></category>
		<category><![CDATA[Octopus]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[Pug]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Social Networks]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[Video]]></category>
		<category><![CDATA[WordPress Tips]]></category>

		<guid isPermaLink="false">http://www.kimwoodbridge.com/?p=6563</guid>
		<description><![CDATA[The last (Anti) Social List of 2009<p>Post from: <a href="http://www.kimwoodbridge.com">(Anti) Social Development</a><br/><br/><a href="http://www.kimwoodbridge.com/anti-social-lists-122709/">(Anti) Social Lists 12/27/09</a></p>
]]></description>
			<content:encoded><![CDATA[<p>We are now in that mid holiday week limbo period.  Christmas is over and New Years isn&#8217;t quite here.  The kids are off from school and without childcare it is very difficult (almost impossible) to work.</p>
<p>This week I have WordPress, Twitter, Morgan Freeman, coconuts and much much more.</p>
<p><span id="more-6563"></span></p>
<ul>
<li>
<a href="http://wpkickstart.com/blog/how-to-move-from-wordpress-com-to-wordpress-org/" title="How to move from WordPress.com to WordPress.org" rel="nofollow">How to move from WordPress.com to WordPress.org</a> &#8211; A comprehensive tutorial on moving from WordPress.com to WordPress.org.  The tutorial includes two screencasts.
</li>
<li>
 <a href="http://creativeoverflow.net/how-to-fully-secure-your-wordpress-blog/" title="How to Fully Secure Your WordPress Blog" rel="nofollow">How to Fully Secure Your WordPress Blog</a> WordPress security is important and is a popular topic.  Here is a security guide from someone who learned things the hard way.
</li>
<li>
<a href="http://webanthology.net/do-it-yourself-12-wordpress-solutions-without-using-plugins/2009/12/14/" title="Do it Yourself: 12 WordPress Solutions Without Using Plugins" rel="nofollow"> Do it Yourself: 12 WordPress Solutions Without Using Plugins</a> &#8211; 12 Ways to implement common WordPress features, such as related posts, without using plugins.
</li>
<li>
 <a href="http://www.socialmediaexaminer.com/5-creative-ways-to-use-your-twitter-favorites/" title="5 Creative Ways to Use Your Twitter Favorites" rel="nofollow">5 Creative Ways to Use Your Twitter Favorites</a> &#8211; I don&#8217;t really use the favorites feature on Twitter but this list of ways to use them almost makes me wish that I did.
</li>
<li>
 <a href="http://news.nationalgeographic.com/news/2009/12/091214-octopus-carries-coconuts-coconut-carrying.html" title="Bizarre Octopuses Carry Coconuts as Instant Shelters" rel="nofollow">Bizarre Octopuses Carry Coconuts as Instant Shelters</a> &#8211; A really interesting article about octopus and coconut shells.
</li>
<li>
<a href="http://instantchewbacca.com/ " title="Instant Chewbacca" rel="nofollow">Instant Chewbacca</a> &#8211; I do a terrible Chewbacca impression.  This site can help me practice.
</li>
<li>
 <a href="http://imgur.com/wJG6J" title="The Morgan Freeman Chain of Command" rel="nofollow">The Morgan Freeman Chain of Command</a> Morgan Freeman has been in a lot of films and has had a lot of great roles.  This is a funny chart creating a chain of command out of them.
</li>
<li>
 <a href="http://nutshellmail.com/default.aspx" title="Nutshell Mail" rel="nofollow">Nutshell Mail</a> &#8211; This is a way to manage your social networks through email.  If you are really busy, one email digest can notify you about updates on Facebook, Twitter and MySpace; new followers, birthdays, news stream, direct messages, replies, etc.  I haven&#8217;t tried this but it seems like a great way to manage all of this information.
</li>
<li>
A clever kitten<br />
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="437" height="333" id="viddler"><param name="movie" value="http://www.viddler.com/player/78033a00/" /><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="true" /><param name="flashvars" value="fake=1"/><embed src="http://www.viddler.com/player/78033a00/" width="437" height="333" type="application/x-shockwave-flash" allowScriptAccess="always" allowFullScreen="true" flashvars="fake=1" name="viddler" ></embed></object>
</li>
<li>
Pug vs. Laser<br />
<object width="480" height="295"><param name="movie" value="http://www.youtube.com/v/GVuBPaJsNQc&#038;hl=en_US&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/GVuBPaJsNQc&#038;hl=en_US&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="295"></embed></object>
</li>
</ul>
<p>Post from: <a href="http://www.kimwoodbridge.com">(Anti) Social Development</a><br/><br/><a href="http://www.kimwoodbridge.com/anti-social-lists-122709/">(Anti) Social Lists 12/27/09</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kimwoodbridge.com/anti-social-lists-122709/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>How to Link NextGEN Gallery Images to an Individual Page or Post in WordPress</title>
		<link>http://www.kimwoodbridge.com/how-to-link-nextgen-gallery-images-to-an-individual-page-or-post-in-wordpress/</link>
		<comments>http://www.kimwoodbridge.com/how-to-link-nextgen-gallery-images-to-an-individual-page-or-post-in-wordpress/#comments</comments>
		<pubDate>Wed, 16 Dec 2009 05:01:26 +0000</pubDate>
		<dc:creator>Kim Woodbridge</dc:creator>
				<category><![CDATA[WordPress Plugins]]></category>
		<category><![CDATA[WordPress Tips]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Custom Fields]]></category>
		<category><![CDATA[Edit]]></category>
		<category><![CDATA[File]]></category>
		<category><![CDATA[Hack]]></category>
		<category><![CDATA[Individual Posts]]></category>
		<category><![CDATA[Link]]></category>
		<category><![CDATA[NextGen Gallery]]></category>
		<category><![CDATA[Pages]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[URL]]></category>

		<guid isPermaLink="false">http://www.kimwoodbridge.com/?p=5886</guid>
		<description><![CDATA[How to link NextGEN Gallery Images to a specific URL.<p>Post from: <a href="http://www.kimwoodbridge.com">(Anti) Social Development</a><br/><br/><a href="http://www.kimwoodbridge.com/how-to-link-nextgen-gallery-images-to-an-individual-page-or-post-in-wordpress/">How to Link NextGEN Gallery Images to an Individual Page or Post in WordPress</a></p>
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/mugley/2917487991/" title="we're all individuals (by mugley)" rel="nofollow"><img src="http://farm4.static.flickr.com/3047/2917487991_7b79e004d0_m.jpg" title="we're all individuals (by mugley)" alt="we're all individuals (by mugley)" width="240" height="171" class="left frame" /></a></p>
<p>In my previous article I discussed how <a href="http://www.kimwoodbridge.com/nextgen-custom-fields-plugin-add-more-information-about-an-image-in-the-nextgen-gallery" title="NextGen Custom Fields Plugin: Add More Information About an Image in the NextGen Gallery">more information could be added to the images</a> in the NextGEN Gallery by using the NextGEN Custom Fields plugin.</p>
<p>I installed and activated the plugin, created a new custom field, and showed the code that was used to display the new field with the images.</p>
<p>What I still need to discuss is where the code should go in the NextGEN Gallery template file and how to link to individual posts or pages.  So, here we go.</p>
<p><span id="more-5886"></span></p>
<ol>
<li>We do not want the images to use a javascript or lightbox effect when they are clicked on.  Go to Gallery > Options > Effects > Set Javascript Thumbnail Effect to &#8216;None&#8217;<br />
<img src="http://www.kimwoodbridge.com/wp-content/uploads/2009/12/effects.jpg" alt="effects" title="effects" width="550" height="202" class="aligncenter frame size-full wp-image-6580" />
</li>
<li><a href="http://www.kimwoodbridge.com/nextgen-custom-fields-plugin-add-more-information-about-an-image-in-the-nextgen-gallery" title="NextGen Custom Fields Plugin: Add More Information About an Image in the NextGen Gallery">Install the NextGEN Custom Fields plugin</a>, if you haven&#8217;t done so already.</li>
<li><a href="http://www.kimwoodbridge.com/nextgen-custom-fields-plugin-add-more-information-about-an-image-in-the-nextgen-gallery" title="NextGen Custom Fields Plugin: Add More Information About an Image in the NextGen Gallery">Create a new custom field for images</a>.</li>
<li>In the custom field put a link to one of your pages, posts, or another site. I made mine a link to a the specific page for each item in my <a href="http://www.kimwoodbridge.com/portfolio-2/" title="Portfolio">portfolio</a>.</li>
<li>Go to Plugins > Editor > Switch to NextGEN Gallery in the Drop down Box > and click on nextgen-gallery/view/gallery.php  It is near the bottom of the lists.</li>
<li>Make a copy of this file before you start it. </li>
<li>Starting at Line 41 (in my copy) is the following block of code:<br />
<blockquote>
<pre name="php">
&lt;div class="ngg-gallery-thumbnail" >
&lt;a href="&lt;?php echo $image->imageURL ?>"
title="&lt;?php echo $image->description ?>"
&lt;?php echo $image-&lt;thumbcode ?> >

&lt;img title="&lt;?php echo $image->alttext ?>"
alt="&lt;?php echo $image->alttext ?>" src="&lt;?php echo $image->
thumbnailURL ?>"
&lt;?php echo $image-&lt;size ?> />

			&lt;/a>
		&lt;/div>
</pre>
</blockquote>
</li>
<li>I changed the code to the following so that the image was linked to the page I designated in the new custom field and so that the description was linked to the same page.<br />
<blockquote>
<pre name="php">
&lt;div class="ngg-gallery-thumbnail" >
&lt;a href="&lt;?php echo $image->ngg_custom_fields["Link"]; ?>"
title="&lt;?php echo $image->description ?>"
&lt;?php echo $image->thumbcode ?>  >
&lt;img title="&lt;?php echo $image->alttext ?>"
alt="&lt;?php echo $image->alttext ?>" src="&lt;?php echo $image->
thumbnailURL ?>"
&lt;?php echo $image->size ?> />&lt;/a>

&lt;a href="&lt;?php echo $image->ngg_custom_fields["Link"]; ?>">
&lt;?php echo $image->alttext ?></a>
		&lt;/div>
</pre>
</blockquote>
<p>Basically, you are replacing imageURL with ngg_custom_fields["Link"] so the image links to the URL in your custom field.
</li>
<li>Keep in mind that ["Link"] will be the name of whatever you named your custom field.</li>
<li>I also added the last line that links the alttext or description of the image to the same page.</li>
<li>Since you are editing a template file, the changes will be lost if you don&#8217;t save them before upgrading the plugin.  This is a bit of a hack but it is a way to link images in the NextGEN Gallery to individual posts or pages.</li>
</ol>
<p>Here are some of the images in my portfolio, which demonstrates how this works.</p>

<div class="ngg-galleryoverview" id="ngg-gallery-3-5886">


	
	<!-- Thumbnails -->
		
	<div id="ngg-image-16" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.kimwoodbridge.com/technical-consultant-green-la-girl/" title="green LA girl"   >
				<img title="green LA girl" alt="green LA girl" src="http://www.kimwoodbridge.com/wp-content/gallery/posts/thumbs/thumbs_greenlagirl.jpg" width="200" height="175" /></a>
			
<a href="http://www.kimwoodbridge.com/technical-consultant-green-la-girl/" target="_blank">green LA girl</a>
		</div>
	</div>
	 		
	<div id="ngg-image-17" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.kimwoodbridge.com/technical-consultant-green-clean-mom/" title="Green and Clean Mom"   >
				<img title="Green and Clean Mom" alt="Green and Clean Mom" src="http://www.kimwoodbridge.com/wp-content/gallery/posts/thumbs/thumbs_greenmom.jpg" width="200" height="175" /></a>
			
<a href="http://www.kimwoodbridge.com/technical-consultant-green-clean-mom/" target="_blank">Green and Clean Mom</a>
		</div>
	</div>
	 		
	<div id="ngg-image-18" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.kimwoodbridge.com/technical-consultant-socialize-mobilize/" title="Socialize Mobilize"   >
				<img title="Socialize Mobilize" alt="Socialize Mobilize" src="http://www.kimwoodbridge.com/wp-content/gallery/posts/thumbs/thumbs_socialize.jpg" width="200" height="175" /></a>
			
<a href="http://www.kimwoodbridge.com/technical-consultant-socialize-mobilize/" target="_blank">Socialize Mobilize</a>
		</div>
	</div>
	 		
	<div id="ngg-image-19" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.kimwoodbridge.com/wordpress-consultant-gcitizen/" title="G Citizen"   >
				<img title="G Citizen" alt="G Citizen" src="http://www.kimwoodbridge.com/wp-content/gallery/posts/thumbs/thumbs_gcitizen_port.jpg" width="200" height="175" /></a>
			
<a href="http://www.kimwoodbridge.com/wordpress-consultant-gcitizen/" target="_blank">G Citizen</a>
		</div>
	</div>
	 	 	
	<!-- Pagination -->
 	<div class='ngg-clear'></div>
 	
</div>


<p>Note: This information came from the <a href="http://wordpress.org/support/topic/298551?replies=34" title="Is it Possible to specify url links in thumbnails" rel="nofollow">WordPress support forums</a> and the plugin developer.  I used the information to do this write-up.</p>
<p><small>photo credit: <a href="http://www.flickr.com/photos/mugley/2917487991/" title="we're all individuals (by mugley)" rel="nofollow">mugley</a></small></p>
<p>Post from: <a href="http://www.kimwoodbridge.com">(Anti) Social Development</a><br/><br/><a href="http://www.kimwoodbridge.com/how-to-link-nextgen-gallery-images-to-an-individual-page-or-post-in-wordpress/">How to Link NextGEN Gallery Images to an Individual Page or Post in WordPress</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kimwoodbridge.com/how-to-link-nextgen-gallery-images-to-an-individual-page-or-post-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>178</slash:comments>
		</item>
		<item>
		<title>Don&#8217;t Paste Content from Microsoft Word into the WordPress Visual Editor</title>
		<link>http://www.kimwoodbridge.com/dont-paste-content-from-microsoft-word-into-the-wordpress-visual-editor/</link>
		<comments>http://www.kimwoodbridge.com/dont-paste-content-from-microsoft-word-into-the-wordpress-visual-editor/#comments</comments>
		<pubDate>Thu, 16 Jul 2009 04:01:46 +0000</pubDate>
		<dc:creator>Kim Woodbridge</dc:creator>
				<category><![CDATA[WordPress Tips]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Content]]></category>
		<category><![CDATA[Formatting]]></category>
		<category><![CDATA[Kitchen Sink]]></category>
		<category><![CDATA[Layout]]></category>
		<category><![CDATA[Microsoft Word]]></category>
		<category><![CDATA[Paste]]></category>
		<category><![CDATA[Posts]]></category>
		<category><![CDATA[Problems]]></category>
		<category><![CDATA[Text]]></category>
		<category><![CDATA[Visual Editor]]></category>
		<category><![CDATA[Writing]]></category>

		<guid isPermaLink="false">http://www.kimwoodbridge.com/?p=4909</guid>
		<description><![CDATA[Pasting content from Microsoft Word into the WordPress visual editor causes formatting problems.<p>Post from: <a href="http://www.kimwoodbridge.com">(Anti) Social Development</a><br/><br/><a href="http://www.kimwoodbridge.com/dont-paste-content-from-microsoft-word-into-the-wordpress-visual-editor/">Don&#8217;t Paste Content from Microsoft Word into the WordPress Visual Editor</a></p>
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/95376452@N00/32826530/" title="Paste (by SierraBlair)" rel="nofollow"><img src="http://farm1.static.flickr.com/23/32826530_de53a9776e_m.jpg" title="Paste (by SierraBlair)" alt="Paste (by SierraBlair)" width="240" height="180" class="left frame" /></a></p>
<p>I incorrectly assumed that it was common knowledge to not paste content from Microsoft Word directly into the WordPress Visual editor but I encounter problems related to this issue so frequently that I thought I should do a quick write-up about the issue.</p>
<p>When you copy and paste content from Microsoft Word, it attempts to preserve the formatting and adds sorts of &#8220;ugly&#8221; formatting code into the WordPress editor.  Frequently this results in the page not displaying properly in Internet Explorer. (It amuses me to no end that Microsoft&#8217;s web browser can&#8217;t deal with it&#8217;s Word Processor formatting code.  For some reason Firefox is able to work around it.)  So, someone will come to me and tell me that the formatting on the page is messed up or that the sidebar is in the wrong location.  It isn&#8217;t actually a layout or WordPress code issue but rather that formatting code from Microsoft Word is affecting the layout.</p>
<p><span id="more-4909"></span></p>
<p>When you use the Visual Editor you won&#8217;t see the formatting code.  You can, however, determine if this is the problem by switching to the html editor or viewing the source code in the web browser.  If you see code that looks like the following, then you can be confident that the Microsoft Word formatting is the cause of the problem.</p>
<blockquote>
<pre class="html">
&lt;p class="MsoNormal" style="margin: 0in 0in 10pt;">
&lt;span style="font-size: small;">Some text here.&lt;/span>
&lt;span style="mso-spacerun: yes;"> Some more text here. &lt;/span>
&lt;span style="mso-spacerun: yes;">And some more.  &lt;/span>

</pre>
</blockquote>
<p>The class and styles that start with Mso giveaway that the content was pasted directly from Microsoft Word. If that class and span information is removed, the formatting problem is corrected.</p>
<p>So, what do you do if you have a lot of content in Word that you want to post on your WordPress site?</p>
<ol>
<li>Use the paste from Word button the toolbar.  You need to click on the Kitchen Sink button to see it.<br />
<img src="http://www.kimwoodbridge.com/wp-content/uploads/2009/07/visual.png" alt="visual" title="visual" width="505" height="149" class="aligncenter frame size-full wp-image-4975" />
</li>
<li>Paste the Word content into a text editor like Notepad and then copy and paste it into WordPress.</li>
</ol>
<p>Have you ever run into this type of formatting problem?  Personally I haven&#8217;t because I don&#8217;t use Microsoft Office and I don&#8217;t use the Visual Editor but I encounter this issue almost weekly.</p>
<p><small>photo credit: <a href="http://www.flickr.com/photos/95376452@N00/32826530/" title="Paste (by SierraBlair)" rel="nofollow">SierraBlair</a></small></p>
<p>Post from: <a href="http://www.kimwoodbridge.com">(Anti) Social Development</a><br/><br/><a href="http://www.kimwoodbridge.com/dont-paste-content-from-microsoft-word-into-the-wordpress-visual-editor/">Don&#8217;t Paste Content from Microsoft Word into the WordPress Visual Editor</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kimwoodbridge.com/dont-paste-content-from-microsoft-word-into-the-wordpress-visual-editor/feed/</wfw:commentRss>
		<slash:comments>44</slash:comments>
		</item>
	</channel>
</rss>

