<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Support Forum - Topic: If there is no featured image use custom field</title>
		<link>http://www.kriesi.at/support/topic/if-there-is-no-featured-image-use-custom-field</link>
		<description>Support Forum - Topic: If there is no featured image use custom field</description>
		<language>en-US</language>
		<pubDate>Thu, 20 Jun 2013 11:46:37 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.kriesi.at/support/search.php</link>
		</textInput>
		<atom:link href="http://www.kriesi.at/support/rss/topic/if-there-is-no-featured-image-use-custom-field" rel="self" type="application/rss+xml" />

		<item>
			<title>romancretnik on "If there is no featured image use custom field"</title>
			<link>http://www.kriesi.at/support/topic/if-there-is-no-featured-image-use-custom-field#post-3482</link>
			<pubDate>Wed, 25 Aug 2010 14:34:31 +0000</pubDate>
			<dc:creator>romancretnik</dc:creator>
			<guid isPermaLink="false">3482@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;It works, thanks!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "If there is no featured image use custom field"</title>
			<link>http://www.kriesi.at/support/topic/if-there-is-no-featured-image-use-custom-field#post-3284</link>
			<pubDate>Mon, 23 Aug 2010 06:22:04 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">3284@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Try this code&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;if (have_posts()) :
		while (have_posts()) : the_post();

		$preview_image = kriesi_post_thumb($post-&#38;gt;ID, array(&#38;#39;size&#38;#39;=&#38;gt; array(&#38;#39;M&#38;#39;),
													&#38;#39;display_link&#38;#39; =&#38;gt; array(&#38;#39;lightbox&#38;#39;), 				// &#38;#39;_prev_image_link&#38;#39; or array(&#38;#39;lightbox&#38;#39;)
													&#38;#39;linkurl&#38;#39; =&#38;gt; array (&#38;#39;fullscreen&#38;#39;,&#38;#39;_preview_big&#38;#39;),
													&#38;#39;wh&#38;#39; =&#38;gt; $k_option[&#38;#39;custom&#38;#39;][&#38;#39;imgSize&#38;#39;][&#38;#39;M&#38;#39;]
													));

		if ($preview_image == &#38;quot;&#38;quot;) {
		$slika_620x330 = ....your code;

		$preview_image = $slika_620x330;
		}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>romancretnik on "If there is no featured image use custom field"</title>
			<link>http://www.kriesi.at/support/topic/if-there-is-no-featured-image-use-custom-field#post-3276</link>
			<pubDate>Sun, 22 Aug 2010 20:06:17 +0000</pubDate>
			<dc:creator>romancretnik</dc:creator>
			<guid isPermaLink="false">3276@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;I bought the Newscast theme for upgrade of &#60;a href=&#34;http://www.zlataleta.com&#34; rel=&#34;nofollow&#34;&#62;http://www.zlataleta.com&#60;/a&#62;.&#60;br /&#62;
In my old template I use custom fields for images on the index page, category pages and for some other pages. I have about 1000 posts, that don't have the featured image set. I think it's to time consuming to edit all of the posts and that there has to be a simpler way to solve this. I know some php, but obviously not enough to make it alone.&#60;br /&#62;
Would you be so kind and help me to customize your template so, that if there is no featured image set, it uses the image that is set with the custom field &#34;Slika-620x330&#34;.&#60;/p&#62;
&#60;p&#62;This is an example of the code I use now:&#60;br /&#62;
&#38;lt;?php query_posts('showposts=1&#38;amp;cat=459'); // cat 459 is for the featured category ?&#38;gt;&#60;br /&#62;
   			&#38;lt;?php while (have_posts()) : the_post(); ?&#38;gt;&#60;br /&#62;
				&#38;lt;?php $slika_620x330 = get_post_meta($post-&#38;gt;ID, 'Slika-620x330', true); ?&#38;gt;&#60;br /&#62;
				&#60;img /&#62;&#34; class=&#34;thumb-mini&#34; alt=&#34;&#38;lt;?php the_title(); ?&#38;gt;&#34; /&#38;gt;&#60;br /&#62;
                &#60;a&#62;&#34; title=&#34;Povezava na &#38;lt;?php the_title(); ?&#38;gt;&#34;&#38;gt;&#38;lt;?php the_title(); ?&#38;gt;&#60;/a&#62;&#60;br /&#62;
				&#38;lt;?php echo $povzetek_mini; ?&#38;gt;&#60;br /&#62;
			&#38;lt;?php endwhile; ?&#38;gt;
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
