<?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>ThemeShaper Forums Topic: index loop: latest post, exceprt post</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Thu, 20 Jun 2013 00:06:35 +0000</pubDate>

<item>
<title>helgatheviking on "index loop: latest post, exceprt post"</title>
<link>http://themeshaper.com/forums/topic/index-loop-latest-post-exceprt-post#post-23330</link>
<pubDate>Mon, 03 Oct 2011 22:10:49 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">23330@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;idk if it is exactly a parse error, but it means that it is usually missing something that should be there BEFORE the else statement.  i looked again and definitely missed something.. you can't have an ELSE without an IF, and you don't need the else part anyway.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;// add our thumbnail loop instead
function thumbnail_loop() {
    if ( is_category(&#38;#39;gallery&#38;#39;) ) {
	global $post;
	get_template_part( &#38;#39;loop&#38;#39;, &#38;#39;thumbnail&#38;#39; );
}
add_action(&#38;#39;thematic_categoryloop&#38;#39;, &#38;#39;thumbnail_loop&#38;#39;);

}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;though i'm curious if you could combine the 2 functions:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;// remove all loops and replace them with our thumbnail loop
function mod_loops() {
   if ( is_category(&#38;#39;gallery&#38;#39;) ) {
	remove_action(&#38;#39;thematic_categoryloop&#38;#39;, &#38;#39;thematic_category_loop&#38;#39;);
        add_action(&#38;#39;thematic_categoryloop&#38;#39;, &#38;#39;thumbnail_loop&#38;#39;);
   }
}

add_action(&#38;#39;init&#38;#39;, &#38;#39;mod_loops&#38;#39;);

// add our thumbnail loop instead
function thumbnail_loop() {
	global $post;
	get_template_part( &#38;#39;loop&#38;#39;, &#38;#39;thumbnail&#38;#39; );
}&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>mrmikeman on "index loop: latest post, exceprt post"</title>
<link>http://themeshaper.com/forums/topic/index-loop-latest-post-exceprt-post#post-23327</link>
<pubDate>Mon, 03 Oct 2011 19:33:00 +0000</pubDate>
<dc:creator>mrmikeman</dc:creator>
<guid isPermaLink="false">23327@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;im getting somewhere....&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://ocixx.com/canvas/category/gallery/&#34; rel=&#34;nofollow&#34;&#62;http://ocixx.com/canvas/category/gallery/&#60;/a&#62;&#60;br /&#62;
&#60;a href=&#34;http://ocixx.com/canvas/category/uncategorized/&#34; rel=&#34;nofollow&#34;&#62;http://ocixx.com/canvas/category/uncategorized/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;as you see, the gallery cat is styled how i want it, and uncat..  is how it is by default. &#60;/p&#62;
&#60;p&#62;but im pretty sure the home page had thumbs on it before.. so i need to figure out whats interfering with that.. :-D
&#60;/p&#62;</description>
</item>
<item>
<title>mrmikeman on "index loop: latest post, exceprt post"</title>
<link>http://themeshaper.com/forums/topic/index-loop-latest-post-exceprt-post#post-23326</link>
<pubDate>Mon, 03 Oct 2011 18:20:20 +0000</pubDate>
<dc:creator>mrmikeman</dc:creator>
<guid isPermaLink="false">23326@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;is an unexpected else tag a parse error? cause i figured i was missing something but im trying to add them anywhere i could(accept the right spot) and it wont budge lol&#60;/p&#62;
&#60;p&#62;i closed it how you showed me but still telling me theres an error on line 92, being the line with }else{
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "index loop: latest post, exceprt post"</title>
<link>http://themeshaper.com/forums/topic/index-loop-latest-post-exceprt-post#post-23325</link>
<pubDate>Mon, 03 Oct 2011 18:14:36 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">23325@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;parse errors mean you are missing something like a ; } ) &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;// add our thumbnail loop instead
function thumbnail_loop() {
} else {
	global $post;
	get_template_part( &#38;#39;loop&#38;#39;, &#38;#39;thumbnail&#38;#39; );
} //you forgot to close this ELSE statement
add_action(&#38;#39;thematic_categoryloop&#38;#39;, &#38;#39;thumbnail_loop&#38;#39;);

}&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>mrmikeman on "index loop: latest post, exceprt post"</title>
<link>http://themeshaper.com/forums/topic/index-loop-latest-post-exceprt-post#post-23324</link>
<pubDate>Mon, 03 Oct 2011 17:16:12 +0000</pubDate>
<dc:creator>mrmikeman</dc:creator>
<guid isPermaLink="false">23324@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;okay im seeing what i could do but im getting a syntax error on the else tag unexpected t else error ,but im pretty sure i need it&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;// remove all loops and replace them with our thumbnail loop
function remove_loops() {
	if ( is_category(&#38;#39;gallery&#38;#39;) ) {
	remove_action(&#38;#39;thematic_categoryloop&#38;#39;, &#38;#39;thematic_category_loop&#38;#39;);
	}
}

add_action(&#38;#39;init&#38;#39;, &#38;#39;remove_loops&#38;#39;);

// add our thumbnail loop instead
function thumbnail_loop() {
} else {
	global $post;
	get_template_part( &#38;#39;loop&#38;#39;, &#38;#39;thumbnail&#38;#39; );

add_action(&#38;#39;thematic_categoryloop&#38;#39;, &#38;#39;thumbnail_loop&#38;#39;);

}&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>helgatheviking on "index loop: latest post, exceprt post"</title>
<link>http://themeshaper.com/forums/topic/index-loop-latest-post-exceprt-post#post-23322</link>
<pubDate>Mon, 03 Oct 2011 15:21:46 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">23322@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;you are using is_category() logic to add the stylesheet.  why not try that for adding and removing the category loops?&#60;/p&#62;
&#60;p&#62;OR, you could duplicate category.php and rename it to  category-{slug}.php like i mentioned above.  then you could replace thematic_categoryloop with your custom loop.
&#60;/p&#62;</description>
</item>
<item>
<title>mrmikeman on "index loop: latest post, exceprt post"</title>
<link>http://themeshaper.com/forums/topic/index-loop-latest-post-exceprt-post#post-23319</link>
<pubDate>Mon, 03 Oct 2011 01:23:10 +0000</pubDate>
<dc:creator>mrmikeman</dc:creator>
<guid isPermaLink="false">23319@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;ok i ended up going a slightly different rout, and like usual didnt realize the whole time what i was doing was actually targeting all categories and not just one. .&#60;/p&#62;
&#60;p&#62;in my child theme folder, aside from css files, i have&#60;/p&#62;
&#60;p&#62;loop-thumbnail.php&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
global $post;
$count = 1;
while ( have_posts() ) : the_post();
if(function_exists(&#38;#39;p75GetVideo&#38;#39;)){
	if(p75GetVideo($post-&#38;gt;ID)){
		$vidclass = &#38;#39;video&#38;#39;;
	} else {
		$vidclass = &#38;#39;&#38;#39;;
	}
}

?&#38;gt;
		&#38;lt;div id=&#38;quot;post-&#38;lt;?php the_ID() ?&#38;gt;&#38;quot; &#38;lt;?php echo post_class($vidclass); ?&#38;gt;&#38;gt;
			&#38;lt;div class=&#38;quot;entry-content&#38;quot;&#38;gt;
			&#38;lt;?php childtheme_post_header() ?&#38;gt;
        	&#38;lt;a href=&#38;quot;&#38;lt;?php echo the_permalink() ?&#38;gt;&#38;quot;&#38;gt;
        	&#38;lt;div class=&#38;quot;post-title&#38;quot;&#38;gt;&#38;lt;?php echo the_title(); ?&#38;gt;&#38;lt;/div&#38;gt;
        	&#38;lt;?php 

			$thumbnail = get_post_meta($post-&#38;gt;ID, &#38;#39;thumbnail&#38;#39;, true);

			if( $thumbnail ):
				echo &#38;#39;&#38;lt;img class=&#38;quot;attachment-thumbnail&#38;quot; src=&#38;quot;&#38;#39; .get_post_meta($post-&#38;gt;ID, &#38;#39;thumbnail&#38;#39;, true) . &#38;#39;&#38;quot; width=&#38;quot;125&#38;quot; height=&#38;quot;125&#38;quot; alt=&#38;quot;&#38;#39; . get_the_title() .&#38;#39;&#38;quot; /&#38;gt;&#38;lt;/a&#38;gt;&#38;#39;;
        	elseif( has_post_thumbnail() ):
        		the_post_thumbnail(&#38;#39;medium&#38;#39;);
        	else:
				echo &#38;#39;&#38;lt;img class=&#38;quot;attachment-thumbnail&#38;quot; src=&#38;quot;&#38;#39; . get_bloginfo(&#38;#39;stylesheet_directory&#38;#39;) . &#38;#39;/images/thumbnail-default.jpg&#38;quot; width=&#38;quot;125&#38;quot; height=&#38;quot;125&#38;quot; alt=&#38;quot;&#38;#39; . get_the_title() .&#38;#39;&#38;quot; /&#38;gt;&#38;#39;;
        	endif;
        	?&#38;gt;
        	&#38;lt;/a&#38;gt;
		  &#38;lt;/div&#38;gt;
		&#38;lt;/div&#38;gt;&#38;lt;!-- .post --&#38;gt;

&#38;lt;?php

	if ($count==$thm_insert_position)
		get_sidebar(&#38;#39;index-insert&#38;#39;);

	$count = $count + 1;
endwhile;

?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;functions.php&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
// add custom style sheet for the gallery category page
function childtheme_css() {
if (is_category(&#38;#39;gallery&#38;#39;)) {?&#38;gt;
&#38;lt;link rel=&#38;quot;stylesheet&#38;quot; type=&#38;quot;text/css&#38;quot; href=&#38;quot;&#38;lt;?php echo bloginfo(&#38;#39;stylesheet_directory&#38;#39;) ?&#38;gt;/cat-gallery.css&#38;quot; /&#38;gt; &#38;lt;?php }
}
add_action(&#38;#39;wp_head&#38;#39;, &#38;#39;childtheme_css&#38;#39;);

// add image sizes, give that size a name and define its measurements
add_image_size( &#38;#39;medismall&#38;#39;, 228, 160 ); 

// remove sidebar on category-page &#38;quot;gallery&#38;quot;
function remove_sidebar() {
  if(is_category(&#38;#39;gallery&#38;#39;)){
    return FALSE;
  } else {
    return TRUE;
  }
}

add_filter(&#38;#39;thematic_sidebar&#38;#39;, &#38;#39;remove_sidebar&#38;#39;);

// add custom post header
function childtheme_post_header(){

  global $up_options;

  $gall_newlength = $up_options-&#38;gt;new_length;

	if($gall_newlength){
		$time = $gall_newlength;
	} else {
		$time = 3;
	}

	if ( (time()-get_the_time(&#38;#39;U&#38;#39;)) &#38;lt;= ($time*86400) ):
		echo &#38;#39;&#38;lt;div class=&#38;quot;new&#38;quot;&#38;gt;&#38;lt;/div&#38;gt;&#38;#39;;
	endif;
}

// remove all loops and replace them with our thumbnail loop

function remove_loops() {

	remove_action(&#38;#39;thematic_categoryloop&#38;#39;, &#38;#39;thematic_category_loop&#38;#39;);
}

add_action(&#38;#39;init&#38;#39;, &#38;#39;remove_loops&#38;#39;);

// add our thumbnail loop instead
function thumbnail_loop() {

	global $post;
	get_template_part( &#38;#39;loop&#38;#39;, &#38;#39;thumbnail&#38;#39; );

}

add_action(&#38;#39;thematic_categoryloop&#38;#39;, &#38;#39;thumbnail_loop&#38;#39;);
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;everything looks pretty, in the gallery category&#60;/p&#62;
&#60;p&#62;is there some way thats not all super crazy hard to define what category pages look user this setup?&#60;/p&#62;
&#60;p&#62;i was like.. oh snaps! i did it.. lol but not unless i want all categories to look like that, which i dont.  :(
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "index loop: latest post, exceprt post"</title>
<link>http://themeshaper.com/forums/topic/index-loop-latest-post-exceprt-post#post-23318</link>
<pubDate>Sun, 02 Oct 2011 19:53:51 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">23318@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;no you don't need to use timthumb either if you don't want to.  you can just use the_post_thumbnail('thumbnail') or the_post_thumbnail('medium') to control the size of the image.  &#60;/p&#62;
&#60;p&#62;see the codex entry on the_post_thumbnail&#60;br /&#62;
&#60;a href=&#34;http://codex.wordpress.org/Function_Reference/the_post_thumbnail&#34; rel=&#34;nofollow&#34;&#62;http://codex.wordpress.org/Function_Reference/the_post_thumbnail&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;my code above was only for ideas and was never meant to be a cut and paste solution.  maybe you can post yours when you get it sorted out.
&#60;/p&#62;</description>
</item>
<item>
<title>mrmikeman on "index loop: latest post, exceprt post"</title>
<link>http://themeshaper.com/forums/topic/index-loop-latest-post-exceprt-post#post-23317</link>
<pubDate>Sun, 02 Oct 2011 17:13:23 +0000</pubDate>
<dc:creator>mrmikeman</dc:creator>
<guid isPermaLink="false">23317@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;the pictures come out huge, im seeing the timthumb script i take it i need to install that in the child theme folder?
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "index loop: latest post, exceprt post"</title>
<link>http://themeshaper.com/forums/topic/index-loop-latest-post-exceprt-post#post-23315</link>
<pubDate>Sun, 02 Oct 2011 11:46:38 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">23315@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;no, but you could update it by removing all the image references and replacing them with the_post_thumbnail() built-in function.
&#60;/p&#62;</description>
</item>
<item>
<title>mrmikeman on "index loop: latest post, exceprt post"</title>
<link>http://themeshaper.com/forums/topic/index-loop-latest-post-exceprt-post#post-23312</link>
<pubDate>Sun, 02 Oct 2011 03:44:02 +0000</pubDate>
<dc:creator>mrmikeman</dc:creator>
<guid isPermaLink="false">23312@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;there are several lines in there with catch_that_image, i assume i cant just delete from &#124;catch to image&#124; on each one without breaking something and i wouldnt know from where to where would i remove with out removing something im not supposed to. &#60;/p&#62;
&#60;p&#62;do you know of any updated tutorials?&#60;/p&#62;
&#60;p&#62;i appreciate your help kathy
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "index loop: latest post, exceprt post"</title>
<link>http://themeshaper.com/forums/topic/index-loop-latest-post-exceprt-post#post-23309</link>
<pubDate>Sun, 02 Oct 2011 02:26:58 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">23309@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;well catch_that_image() was a function i was using back in the day, and I had it defined in my functions.php.  you would not have it in yours hence you'd get an undefined function error.  remove the reference to this function and it should be ok.  &#60;/p&#62;
&#60;p&#62;the original instructions call for making a page template.  you could do it this way (and adjust the query) or i still think it is best to create the category template... and in which case i think you actually need to remove the query_posts() call.
&#60;/p&#62;</description>
</item>
<item>
<title>mrmikeman on "index loop: latest post, exceprt post"</title>
<link>http://themeshaper.com/forums/topic/index-loop-latest-post-exceprt-post#post-23308</link>
<pubDate>Sat, 01 Oct 2011 21:20:29 +0000</pubDate>
<dc:creator>mrmikeman</dc:creator>
<guid isPermaLink="false">23308@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;re reading what you had instructed.. creating a page called blog..  i didnt do that, but im confused... what im trying to do is create a 3 column layout for a category page &#34;gallery&#34; being the category.. with the code from the link you provided i was able to do that, but it did it for all categories, including the home page. .
&#60;/p&#62;</description>
</item>
<item>
<title>mrmikeman on "index loop: latest post, exceprt post"</title>
<link>http://themeshaper.com/forums/topic/index-loop-latest-post-exceprt-post#post-23307</link>
<pubDate>Sat, 01 Oct 2011 21:11:18 +0000</pubDate>
<dc:creator>mrmikeman</dc:creator>
<guid isPermaLink="false">23307@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;ok, so i did just that and now when i visit my category page i get&#60;/p&#62;
&#60;p&#62;Fatal error: Call to undefined function catch_that_image() in /home/ocixx/public_html/canvas/wp-content/themes/child2/category-gallery.php on line 40&#60;/p&#62;
&#60;p&#62;my header still loads on the page with this error.
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "index loop: latest post, exceprt post"</title>
<link>http://themeshaper.com/forums/topic/index-loop-latest-post-exceprt-post#post-23306</link>
<pubDate>Sat, 01 Oct 2011 20:40:47 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">23306@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;use above and call it category-{slug}.php&#60;br /&#62;
see the codex on template hierarchy:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://codex.wordpress.org/Template_Hierarchy&#34; rel=&#34;nofollow&#34;&#62;http://codex.wordpress.org/Template_Hierarchy&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>mrmikeman on "index loop: latest post, exceprt post"</title>
<link>http://themeshaper.com/forums/topic/index-loop-latest-post-exceprt-post#post-23305</link>
<pubDate>Sat, 01 Oct 2011 19:46:22 +0000</pubDate>
<dc:creator>mrmikeman</dc:creator>
<guid isPermaLink="false">23305@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Helga, how could i do this just for a specified category page, i want to do a two column layout but just one a category page, i understand i need to do a conditional tag and iv tried but im not putting it in right.&#60;/p&#62;
&#60;p&#62;i dont want to over ride the index loop or anything, i just want to style my category in columns like this code above does&#60;/p&#62;
&#60;p&#62;thanks!
&#60;/p&#62;</description>
</item>
<item>
<title>greenandi on "index loop: latest post, exceprt post"</title>
<link>http://themeshaper.com/forums/topic/index-loop-latest-post-exceprt-post#post-13511</link>
<pubDate>Tue, 29 Jun 2010 11:30:13 +0000</pubDate>
<dc:creator>greenandi</dc:creator>
<guid isPermaLink="false">13511@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;wow thanks much!, it solved.
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "index loop: latest post, exceprt post"</title>
<link>http://themeshaper.com/forums/topic/index-loop-latest-post-exceprt-post#post-13440</link>
<pubDate>Sun, 27 Jun 2010 16:01:31 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">13440@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;here is a page template that i had made to build on that 2 column layout.  (to use: create a blank page in WP, call it blog, save it. this page should now behave as your blog index) basically i had the latest post in a featured box, then 3 more post excerpts then the excerpts start going into 2 columns.  &#60;/p&#62;
&#60;p&#62;i modified it a little so that 2 full posts would show before switching to excerpts like you wanted, but didn't modify anything else.  hope it gives you some ideas...&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
/*
Template Name: Magazine Style Blog

2 column layout inspired by:
&#60;a href=&#34;http://hardiannazief.com/12/create-custom-posts-layout-in-home-page-thematic-child-theme/&#34; rel=&#34;nofollow&#34;&#62;http://hardiannazief.com/12/create-custom-posts-layout-in-home-page-thematic-child-theme/&#60;/a&#62;
*/
?&#38;gt;

&#38;lt;?php

    // calling the header.php
    get_header();
?&#38;gt;
&#38;lt;/div&#38;gt;&#38;lt;!--end first main--&#38;gt;
&#38;lt;?php
    // action hook for placing content above #container
    thematic_abovecontainer();

?&#38;gt;

&#38;lt;?php

$paged = (get_query_var(&#38;#39;paged&#38;#39;)) ? get_query_var(&#38;#39;paged&#38;#39;) : 1; query_posts(&#38;quot;paged=$paged&#38;quot;);
?&#38;gt;

	 &#38;lt;?php $count++; $clear=&#38;#39;&#38;#39;; ?&#38;gt;  

	&#38;lt;?php while ( have_posts() ) : the_post() ?&#38;gt;

	&#38;lt;?php if ($count==1 AND !is_paged()){ ?&#38;gt;

	&#38;lt;div id=&#38;quot;feature&#38;quot; &#38;gt;
		&#38;lt;div id=&#38;quot;feature-container&#38;quot; class=&#38;quot;clearfix&#38;quot;&#38;gt;

			 &#38;lt;?php if ( function_exists( &#38;#39;p75GetVideo&#38;#39; ) ) {
						if(p75HasVideo($post-&#38;gt;ID)){
						echo &#38;#39;&#38;lt;div class=&#38;quot;thumb&#38;quot;&#38;gt;&#38;#39;.p75GetVideo($post-&#38;gt;ID,460,277).&#38;#39;&#38;lt;/div&#38;gt;&#38;#39;;
						} } else {
						echo catch_that_image(&#38;quot;277&#38;quot;,&#38;quot;460&#38;quot;);
				} ?&#38;gt;

				&#38;lt;div id=&#38;quot;post-&#38;lt;?php the_ID() ?&#38;gt;&#38;quot; class=&#38;quot;&#38;lt;?php thematic_post_class() ?&#38;gt;&#38;quot;&#38;gt;

				&#38;lt;div class=&#38;quot;user-comments&#38;quot;&#38;gt;
				&#38;lt;?php
			   // Display comments link and edit link
				if (comments_open()) {
						$postcommentnumber = get_comments_number();
						$postcomments = &#38;#39; &#38;lt;span class=&#38;quot;comments-link&#38;quot;&#38;gt;&#38;lt;a href=&#38;quot;&#38;#39; . get_permalink() . &#38;#39;#comments&#38;quot; title=&#38;quot;&#38;#39; . __(&#38;#39;Comment on &#38;#39;, &#38;#39;thematic&#38;#39;) . the_title_attribute(&#38;#39;echo=0&#38;#39;) . &#38;#39;&#38;quot;&#38;gt;&#38;#39;;
						$postcomments .= get_comments_number() . &#38;#39;&#38;lt;/a&#38;gt;&#38;lt;/span&#38;gt;&#38;#39;;
				} else {
					$postcomments = &#38;#39; &#38;lt;span class=&#38;quot;comments-link&#38;quot;&#38;gt;&#38;#39; . __(&#38;#39;Closed&#38;#39;, &#38;#39;thematic&#38;#39;) .&#38;#39;&#38;lt;/span&#38;gt;&#38;#39;;
				}
				echo $postcomments;
				?&#38;gt;
				&#38;lt;/div&#38;gt;

				&#38;lt;?php thematic_postheader(); ?&#38;gt;
				&#38;lt;div class=&#38;quot;entry-content&#38;quot;&#38;gt;
&#38;lt;?php 	the_content(&#38;#39;&#38;#39;.__(&#38;#39;Read More &#38;lt;span class=&#38;quot;meta-nav&#38;quot;&#38;gt;&#38;amp;raquo;&#38;lt;/span&#38;gt;&#38;#39;, &#38;#39;thematic&#38;#39;).&#38;#39;&#38;#39;);
			//the_excerpt();
?&#38;gt;
			&#38;lt;p&#38;gt;&#38;lt;a href=&#38;quot;&#38;lt;?php the_permalink(); ?&#38;gt;&#38;quot; class=&#38;quot;more-link&#38;quot; title=&#38;quot;Read More&#38;quot;&#38;gt;&#38;lt;?php echo  __(&#38;#39;Read More &#38;lt;span class=&#38;quot;meta-nav&#38;quot;&#38;gt;&#38;amp;raquo;&#38;lt;/span&#38;gt;&#38;#39;, &#38;#39;thematic&#38;#39;); ?&#38;gt; &#38;lt;/a&#38;gt;&#38;lt;/p&#38;gt;

				&#38;lt;?php wp_link_pages(&#38;#39;before=&#38;lt;div class=&#38;quot;page-link&#38;quot;&#38;gt;&#38;#39; .__(&#38;#39;Pages:&#38;#39;, &#38;#39;thematic&#38;#39;) . &#38;#39;&#38;#38;after=&#38;lt;/div&#38;gt;&#38;#39;) ?&#38;gt;
				&#38;lt;/div&#38;gt;
				&#38;lt;?php thematic_postfooter(); ?&#38;gt;

				&#38;lt;div class=&#38;quot;clear_hentry&#38;quot;&#38;gt;&#38;lt;/div&#38;gt;
				&#38;lt;/div&#38;gt;&#38;lt;!-- .post --&#38;gt;

&#38;lt;?php comments_template() ?&#38;gt;

		&#38;lt;/div&#38;gt;&#38;lt;!-- #feature-container --&#38;gt;
	&#38;lt;/div&#38;gt;&#38;lt;!-- #feature --&#38;gt;

	&#38;lt;div id=&#38;quot;main2&#38;quot;&#38;gt;

		&#38;lt;div id=&#38;quot;container&#38;quot;&#38;gt;
		&#38;lt;div id=&#38;quot;content&#38;quot;&#38;gt;

			&#38;lt;?php 

            // create the navigation above the content
            thematic_navigation_above();

            // calling the widget area &#38;#39;index-top&#38;#39;
            get_sidebar(&#38;#39;index-top&#38;#39;);

            // action hook for placing content above the index loop
            thematic_above_indexloop();

	 } else { // end if count=1 and is not paged aka Feature Section

		if ($count==1){ //puts container and content opening divs on paged pages

		    // create the navigation above the content
            thematic_navigation_above();

            // calling the widget area &#38;#39;index-top&#38;#39;
            get_sidebar(&#38;#39;index-top&#38;#39;);

            // action hook for placing content above the index loop
            thematic_above_indexloop();
			?&#38;gt;

		&#38;lt;div id=&#38;quot;container&#38;quot;&#38;gt;
		&#38;lt;div id=&#38;quot;content&#38;quot;&#38;gt;
		&#38;lt;?php } ?&#38;gt;

				&#38;lt;div class=&#38;quot;column &#38;lt;?php if ($count &#38;lt;= 4) { echo &#38;#39;none&#38;#39;; } elseif ($count &#38;gt;=5 AND ($count&#38;#38;1)) { echo &#38;#39;one&#38;#39;; } elseif ($count&#38;gt;=4 AND !($count&#38;#38;1)) { echo &#38;#39;two&#38;#39;; } else { echo &#38;#39;six&#38;#39;; $counter = 4;} ?&#38;gt;&#38;quot;&#38;gt;

				&#38;lt;div id=&#38;quot;post-&#38;lt;?php the_ID() ?&#38;gt;&#38;quot; class=&#38;quot;&#38;lt;?php thematic_post_class() ?&#38;gt;&#38;quot;&#38;gt;

				&#38;lt;div class=&#38;quot;user-comments&#38;quot;&#38;gt;
				&#38;lt;?php
			   // Display comments link and edit link
				if (comments_open()) {
						$postcommentnumber = get_comments_number();
						$postcomments = &#38;#39; &#38;lt;span class=&#38;quot;comments-link&#38;quot;&#38;gt;&#38;lt;a href=&#38;quot;&#38;#39; . get_permalink() . &#38;#39;#comments&#38;quot; title=&#38;quot;&#38;#39; . __(&#38;#39;Comment on &#38;#39;, &#38;#39;thematic&#38;#39;) . the_title_attribute(&#38;#39;echo=0&#38;#39;) . &#38;#39;&#38;quot;&#38;gt;&#38;#39;;
						$postcomments .= get_comments_number() . &#38;#39;&#38;lt;/a&#38;gt;&#38;lt;/span&#38;gt;&#38;#39;;
				} else {
					$postcomments = &#38;#39; &#38;lt;span class=&#38;quot;comments-link&#38;quot;&#38;gt;&#38;#39; . __(&#38;#39;Closed&#38;#39;, &#38;#39;thematic&#38;#39;) .&#38;#39;&#38;lt;/span&#38;gt;&#38;#39;;
				}
				echo $postcomments;
				?&#38;gt;
				&#38;lt;/div&#38;gt;

				&#38;lt;?php thematic_postheader(); ?&#38;gt;

				&#38;lt;?php if(catch_that_image()) {
				//echo &#38;#39;&#38;lt;div class=&#38;quot;thumb&#38;quot;&#38;gt;&#38;lt;a href=&#38;quot;&#38;#39; .get_permalink(). &#38;#39;&#38;quot; title=&#38;quot;&#38;#39; .get_the_title(). &#38;#39;&#38;quot;&#38;gt;&#38;lt;img src=&#38;quot;&#38;#39; .get_stylesheet_directory_uri(). &#38;#39;/scripts/timthumb.php?src=&#38;#39; .urlencode(catch_that_image()). &#38;#39;&#38;amp;amp;h=100&#38;amp;amp;w=200&#38;amp;amp;zc=1&#38;amp;amp;q=90&#38;quot;&#38;gt;&#38;lt;/a&#38;gt;&#38;lt;/div&#38;gt;&#38;#39;;
				echo catch_that_image(&#38;quot;150&#38;quot;,&#38;quot;200&#38;quot;);
				} ?&#38;gt;				

				&#38;lt;div class=&#38;quot;entry-content&#38;quot;&#38;gt;

&#38;lt;?php 	//the_content(&#38;#39;&#38;#39;.__(&#38;#39;Read More &#38;lt;span class=&#38;quot;meta-nav&#38;quot;&#38;gt;&#38;amp;raquo;&#38;lt;/span&#38;gt;&#38;#39;, &#38;#39;thematic&#38;#39;).&#38;#39;&#38;#39;);
			the_excerpt();
?&#38;gt;
			&#38;lt;p&#38;gt;&#38;lt;a href=&#38;quot;&#38;lt;?php the_permalink(); ?&#38;gt;&#38;quot; class=&#38;quot;more-link&#38;quot; title=&#38;quot;Read More&#38;quot;&#38;gt;&#38;lt;?php echo  __(&#38;#39;Read More &#38;lt;span class=&#38;quot;meta-nav&#38;quot;&#38;gt;&#38;amp;raquo;&#38;lt;/span&#38;gt;&#38;#39;, &#38;#39;thematic&#38;#39;); ?&#38;gt; &#38;lt;/a&#38;gt;&#38;lt;/p&#38;gt;

				&#38;lt;?php wp_link_pages(&#38;#39;before=&#38;lt;div class=&#38;quot;page-link&#38;quot;&#38;gt;&#38;#39; .__(&#38;#39;Pages:&#38;#39;, &#38;#39;thematic&#38;#39;) . &#38;#39;&#38;#38;after=&#38;lt;/div&#38;gt;&#38;#39;) ?&#38;gt;
				&#38;lt;/div&#38;gt;
				&#38;lt;?php thematic_postfooter(); ?&#38;gt;

				&#38;lt;div class=&#38;quot;clear_hentry&#38;quot;&#38;gt;&#38;lt;/div&#38;gt;
				&#38;lt;/div&#38;gt;&#38;lt;!-- .post --&#38;gt;
				&#38;lt;/div&#38;gt;&#38;lt;!-- .column--&#38;gt;

&#38;lt;?php //comments_template() ?&#38;gt;

&#38;lt;?php } //end else
?&#38;gt;

&#38;lt;?php if ($count==$thm_insert_position) { ?&#38;gt;&#38;lt;?php get_sidebar(&#38;#39;index-insert&#38;#39;) ?&#38;gt;&#38;lt;?php } ?&#38;gt;
&#38;lt;?php $count = $count + 1; ?&#38;gt;

	&#38;lt;?php endwhile; ?&#38;gt;

			&#38;lt;?php

            // action hook for placing content below the index loop
            thematic_below_indexloop();

            // calling the widget area &#38;#39;index-bottom&#38;#39;
            get_sidebar(&#38;#39;index-bottom&#38;#39;);

            // create the navigation below the content
            thematic_navigation_below();

            ?&#38;gt;

		&#38;lt;/div&#38;gt;&#38;lt;!-- #content --&#38;gt;
	&#38;lt;/div&#38;gt;&#38;lt;!-- #container --&#38;gt;

&#38;lt;?php 

    // action hook for placing content below #container
    thematic_belowcontainer();

    // calling the standard sidebar
    thematic_sidebar();

    // calling footer.php
    get_footer();

?&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>greenandi on "index loop: latest post, exceprt post"</title>
<link>http://themeshaper.com/forums/topic/index-loop-latest-post-exceprt-post#post-13435</link>
<pubDate>Sun, 27 Jun 2010 06:27:45 +0000</pubDate>
<dc:creator>greenandi</dc:creator>
<guid isPermaLink="false">13435@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;hi,&#60;/p&#62;
&#60;p&#62;i wanted to show 2 latest post and then follow older posts as an exceprt.&#60;/p&#62;
&#60;p&#62;this already give me 2 columns exceprt.&#60;br /&#62;
i got this from &#60;a href=&#34;http://hardiannazief.com/12/create-custom-posts-layout-in-home-page-thematic-child-theme/comment-page-1/#comment-4054&#34; rel=&#34;nofollow&#34;&#62;http://hardiannazief.com/12/create-custom-posts-layout-in-home-page-thematic-child-theme/comment-page-1/#comment-4054&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
&#38;lt;?php&#60;br /&#62;
function remove_index_loop() {&#60;br /&#62;
  remove_action('thematic_indexloop', 'thematic_index_loop');&#60;br /&#62;
}&#60;br /&#62;
add_action('init', 'remove_index_loop');&#60;/p&#62;
&#60;p&#62;function snippet_index_loop() {&#60;br /&#62;
  global $post;&#60;br /&#62;
        /* Count the number of posts so we can insert a widgetized area */ $count = 1;&#60;br /&#62;
        while ( have_posts() ) : the_post() ?&#38;gt;&#60;br /&#62;
            &#38;lt;?php $counter++; ?&#38;gt;&#60;br /&#62;
            &#38;lt;div class=&#34;column &#38;lt;?php if ($counter == 1) { echo 'one'; } else { echo 'two'; $counter = 0; } ?&#38;gt;&#34;&#38;gt;&#60;br /&#62;
                &#38;lt;div class=&#34;clear-fix&#34;&#38;gt;&#60;br /&#62;
                    &#38;lt;div id=&#34;post-&#38;lt;?php the_ID() ?&#38;gt;&#34; class=&#34;&#38;lt;?php thematic_post_class() ?&#38;gt;&#34;&#38;gt;&#60;br /&#62;
                        &#38;lt;?php thematic_postheader(); ?&#38;gt;&#60;br /&#62;
                        &#38;lt;div class=&#34;entry-content&#34;&#38;gt;&#60;br /&#62;
                            &#38;lt;?php the_excerpt(); ?&#38;gt;&#60;br /&#62;
                            &#38;lt;?php wp_link_pages('before=&#38;lt;div class=&#34;page-link&#34;&#38;gt;' .__('Pages:', 'thematic') . '&#38;#38;after=&#38;lt;/div&#38;gt;') ?&#38;gt;&#60;br /&#62;
                        &#38;lt;/div&#38;gt;&#60;br /&#62;
                            &#38;lt;?php thematic_postfooter(); ?&#38;gt;&#60;br /&#62;
                    &#38;lt;/div&#38;gt;&#38;lt;!-- .post --&#38;gt;&#60;br /&#62;
                &#38;lt;/div&#38;gt;&#38;lt;!-- .clear-fix --&#38;gt;&#60;br /&#62;
            &#38;lt;/div&#38;gt;&#38;lt;!-- .column --&#38;gt;&#60;/p&#62;
&#60;p&#62;                    &#38;lt;?php comments_template();&#60;br /&#62;
                    if ($count==$thm_insert_position) { get_sidebar('index-insert');}&#60;/p&#62;
&#60;p&#62;        $count = $count + 1;&#60;br /&#62;
        endwhile;&#60;br /&#62;
}&#60;br /&#62;
add_action('thematic_indexloop', 'snippet_index_loop');&#60;/p&#62;
&#60;p&#62;?&#38;gt;&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;thanks,appreciate with the help. i'm not good with php.
&#60;/p&#62;</description>
</item>

</channel>
</rss>
