<?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: Add Images to Archive List?</title>
		<link>http://www.kriesi.at/support/topic/add-images-to-archive-list</link>
		<description>Support Forum - Topic: Add Images to Archive List?</description>
		<language>en-US</language>
		<pubDate>Mon, 20 May 2013 01:58:27 +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/add-images-to-archive-list" rel="self" type="application/rss+xml" />

		<item>
			<title>meltedarts on "Add Images to Archive List?"</title>
			<link>http://www.kriesi.at/support/topic/add-images-to-archive-list#post-1306</link>
			<pubDate>Thu, 29 Jul 2010 03:52:02 +0000</pubDate>
			<dc:creator>meltedarts</dc:creator>
			<guid isPermaLink="false">1306@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Thank you! This worked perfectly.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>James Morrison on "Add Images to Archive List?"</title>
			<link>http://www.kriesi.at/support/topic/add-images-to-archive-list#post-1248</link>
			<pubDate>Wed, 28 Jul 2010 17:59:22 +0000</pubDate>
			<dc:creator>James Morrison</dc:creator>
			<guid isPermaLink="false">1248@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;You need to modify archive.php to accomplish this. Open it up and just after this code:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;while (have_posts()) : the_post();&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;add this code:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;// check if we got a previe picture, and which one should be taken
				// (image resizing with &#38;quot;tim thumb&#38;quot; on? then we can take the big one and resize it)
				$preview_small = get_post_meta($post-&#38;gt;ID, &#38;quot;_preview_small&#38;quot;, true);
				$preview_medium = get_post_meta($post-&#38;gt;ID, &#38;quot;_preview_medium&#38;quot;, true);
				$preview_big = get_post_meta($post-&#38;gt;ID, &#38;quot;_preview_big&#38;quot;, true);

				//defaults:
				$preview = $preview_medium;
				$link_url = $preview_big;
				$lightbox = &#38;#39;singlepost&#38;#39;;
				$link = true;
				//change if necessary:

				// resizing? =&#38;gt; take next sized picture
				if ($k_option[&#38;#39;general&#38;#39;][&#38;#39;tim&#38;#39;] == &#38;quot;1&#38;quot; &#38;amp;&#38;amp; $preview_medium == &#38;quot;&#38;quot;)
				{
					$preview = $preview_big;
				} 

				// no bigpicture? =&#38;gt; no lightbox
				if ($preview_big == &#38;quot;&#38;quot;) { $lightbox = &#38;#39;&#38;#39;; $link = true; $link_url = get_permalink(); }
				// the kriesi_build_image function used here checks if the image should be resized.
				// the function is located in framework/helper_functions

				$preview = kriesi_build_image(array(&#38;#39;url&#38;#39;=&#38;gt;$preview,
													&#38;#39;height&#38;#39;=&#38;gt; &#38;#39;250&#38;#39;,
													&#38;#39;width&#38;#39;=&#38;gt; &#38;#39;250&#38;#39;,
													&#38;#39;lightbox&#38;#39;=&#38;gt;$lightbox,
													&#38;#39;link&#38;#39;=&#38;gt;$link,
													&#38;#39;link_url&#38;#39;=&#38;gt;$link_url
													));&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;You then need to add this code:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;echo $preview; // echo the preview image&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;immediately before this code:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;the_excerpt();&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;To adjust the image size, change the value of height and width (both currently 250).
&#60;/p&#62;</description>
		</item>
		<item>
			<title>meltedarts on "Add Images to Archive List?"</title>
			<link>http://www.kriesi.at/support/topic/add-images-to-archive-list#post-1240</link>
			<pubDate>Wed, 28 Jul 2010 17:39:27 +0000</pubDate>
			<dc:creator>meltedarts</dc:creator>
			<guid isPermaLink="false">1240@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi Kriesi,&#60;/p&#62;
&#60;p&#62;Is it possible to include an image preview to posts appearing in an Archive list view?&#60;/p&#62;
&#60;p&#62;For example, when I click a category link I get an Archive list of posts in that category, but the list is text-only. Is it possible to add a small thumbnail or medium-sized image to this? Or is it possible to view an Archive list in grid view with medium images (as with the portfolio)?&#60;/p&#62;
&#60;p&#62;Thanks for your support!&#60;/p&#62;
&#60;p&#62;-meltedarts
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
