<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>WordPress &#8250; Support Topic: Default Thumbanil Location + Widgets not showing in Sidebar</title>
<link>http://wordpress.org/support/</link>
<description>WordPress &#8250; Support Topic: Default Thumbanil Location + Widgets not showing in Sidebar</description>
<language>en</language>
<pubDate>Thu, 26 Nov 2009 12:47:47 +0000</pubDate>

<item>
<title>wiseowldotcom on "Default Thumbanil Location + Widgets not showing in Sidebar"</title>
<link>http://wordpress.org/support/topic/264845#post-1054888</link>
<pubDate>Fri, 24 Apr 2009 03:12:01 +0000</pubDate>
<dc:creator>wiseowldotcom</dc:creator>
<guid isPermaLink="false">1054888@http://wordpress.org/support/</guid>
<description>&#60;p&#62;I want to display the first image of the post or if there is no image a default image BUT I can't find where the default image is located or where to put this code in eg php and line&#60;/p&#62;
&#60;p&#62;&#38;lt;?php $values = get_post_custom_values(&#34;image&#34;); // set the img custom name&#60;br /&#62;
if (isset($values[0])) { // if there's a img in my custom field&#60;br /&#62;
	?&#38;gt;&#60;br /&#62;
		&#60;a&#62;&#34; rel=&#34;bookmark&#34; title=&#34;&#38;lt;?php the_title_attribute(); ?&#38;gt;&#34;&#38;gt;&#38;lt;img src=&#34;&#38;lt;?php $values = get_post_custom_values(&#34;image&#34;); echo $values[0]; ?&#38;gt;&#34; title=&#34;&#38;lt;?php the_title(); ?&#38;gt;&#34;/&#38;gt;&#60;/a&#62;&#60;br /&#62;
	&#38;lt;?php } // end if statement&#60;br /&#62;
			// if there's no img do replace it with no-img&#60;br /&#62;
	else { ?&#38;gt;&#60;br /&#62;
		&#60;a&#62;&#34; rel=&#34;bookmark&#34; title=&#34;Read the rest of &#38;lt;?php the_title_attribute(); ?&#38;gt;&#34;&#38;gt;&#38;lt;img src=&#34;&#38;lt;?php bloginfo('stylesheet_directory'); ?&#38;gt;/images/no-img.gif&#34; title=&#34;&#38;lt;?php the_title(); ?&#38;gt;&#34;/&#38;gt;&#60;/a&#62;&#60;br /&#62;
	&#38;lt;?php } ?&#38;gt;&#60;/p&#62;
&#60;p&#62;Also I've got 2 sidebars but when I add say 'text' it doesnt actually display..&#60;/p&#62;
&#60;p&#62;Any clues?&#60;/p&#62;
&#60;p&#62;blog - &#60;a href=&#34;http://www.stocksforbreakfast.com&#34; rel=&#34;nofollow&#34;&#62;http://www.stocksforbreakfast.com&#60;/a&#62;
&#60;/p&#62;</description>
</item>

</channel>
</rss>
