Strict Standards: Redefining already defined constructor for class bbdb in /home/themes/public_html/forums/bb-includes/db-mysql.php on line 12

Strict Standards: Declaration of BB_Walker_Blank::start_lvl() should be compatible with BB_Walker::start_lvl($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_lvl() should be compatible with BB_Walker::end_lvl($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::start_el() should be compatible with BB_Walker::start_el($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_el() should be compatible with BB_Walker::end_el($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Warning: Cannot modify header information - headers already sent by (output started at /home/themes/public_html/forums/bb-includes/db-mysql.php:12) in /home/themes/public_html/forums/my-templates/kakumei-variant/rss2.php on line 1
ThemeShaper Forums Topic: index loop: latest post, exceprt post http://forums.themeshaper.com/ Help In Shaping WordPress Themes en Fri, 22 May 2015 16:03:34 +0000 helgatheviking on "index loop: latest post, exceprt post" http://forums.themeshaper.com/topic/index-loop-latest-post-exceprt-post#post-23330 Mon, 03 Oct 2011 22:10:49 +0000 helgatheviking 23330@http://forums.themeshaper.com/ <p>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.</p> <pre><code>// add our thumbnail loop instead function thumbnail_loop() { if ( is_category(&#39;gallery&#39;) ) { global $post; get_template_part( &#39;loop&#39;, &#39;thumbnail&#39; ); } add_action(&#39;thematic_categoryloop&#39;, &#39;thumbnail_loop&#39;); }</code></pre> <p>though i'm curious if you could combine the 2 functions:</p> <pre><code>// remove all loops and replace them with our thumbnail loop function mod_loops() { if ( is_category(&#39;gallery&#39;) ) { remove_action(&#39;thematic_categoryloop&#39;, &#39;thematic_category_loop&#39;); add_action(&#39;thematic_categoryloop&#39;, &#39;thumbnail_loop&#39;); } } add_action(&#39;init&#39;, &#39;mod_loops&#39;); // add our thumbnail loop instead function thumbnail_loop() { global $post; get_template_part( &#39;loop&#39;, &#39;thumbnail&#39; ); }</code></pre> mrmikeman on "index loop: latest post, exceprt post" http://forums.themeshaper.com/topic/index-loop-latest-post-exceprt-post#post-23327 Mon, 03 Oct 2011 19:33:00 +0000 mrmikeman 23327@http://forums.themeshaper.com/ <p>im getting somewhere....</p> <p><a href="http://ocixx.com/canvas/category/gallery/" rel="nofollow">http://ocixx.com/canvas/category/gallery/</a><br /> <a href="http://ocixx.com/canvas/category/uncategorized/" rel="nofollow">http://ocixx.com/canvas/category/uncategorized/</a></p> <p>as you see, the gallery cat is styled how i want it, and uncat.. is how it is by default. </p> <p>but im pretty sure the home page had thumbs on it before.. so i need to figure out whats interfering with that.. :-D </p> mrmikeman on "index loop: latest post, exceprt post" http://forums.themeshaper.com/topic/index-loop-latest-post-exceprt-post#post-23326 Mon, 03 Oct 2011 18:20:20 +0000 mrmikeman 23326@http://forums.themeshaper.com/ <p>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</p> <p>i closed it how you showed me but still telling me theres an error on line 92, being the line with }else{ </p> helgatheviking on "index loop: latest post, exceprt post" http://forums.themeshaper.com/topic/index-loop-latest-post-exceprt-post#post-23325 Mon, 03 Oct 2011 18:14:36 +0000 helgatheviking 23325@http://forums.themeshaper.com/ <p>parse errors mean you are missing something like a ; } ) </p> <pre><code>// add our thumbnail loop instead function thumbnail_loop() { } else { global $post; get_template_part( &#39;loop&#39;, &#39;thumbnail&#39; ); } //you forgot to close this ELSE statement add_action(&#39;thematic_categoryloop&#39;, &#39;thumbnail_loop&#39;); }</code></pre> mrmikeman on "index loop: latest post, exceprt post" http://forums.themeshaper.com/topic/index-loop-latest-post-exceprt-post#post-23324 Mon, 03 Oct 2011 17:16:12 +0000 mrmikeman 23324@http://forums.themeshaper.com/ <p>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</p> <pre><code>// remove all loops and replace them with our thumbnail loop function remove_loops() { if ( is_category(&#39;gallery&#39;) ) { remove_action(&#39;thematic_categoryloop&#39;, &#39;thematic_category_loop&#39;); } } add_action(&#39;init&#39;, &#39;remove_loops&#39;); // add our thumbnail loop instead function thumbnail_loop() { } else { global $post; get_template_part( &#39;loop&#39;, &#39;thumbnail&#39; ); add_action(&#39;thematic_categoryloop&#39;, &#39;thumbnail_loop&#39;); }</code></pre> helgatheviking on "index loop: latest post, exceprt post" http://forums.themeshaper.com/topic/index-loop-latest-post-exceprt-post#post-23322 Mon, 03 Oct 2011 15:21:46 +0000 helgatheviking 23322@http://forums.themeshaper.com/ <p>you are using is_category() logic to add the stylesheet. why not try that for adding and removing the category loops?</p> <p>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. </p> mrmikeman on "index loop: latest post, exceprt post" http://forums.themeshaper.com/topic/index-loop-latest-post-exceprt-post#post-23319 Mon, 03 Oct 2011 01:23:10 +0000 mrmikeman 23319@http://forums.themeshaper.com/ <p>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. .</p> <p>in my child theme folder, aside from css files, i have</p> <p>loop-thumbnail.php<br /> <pre><code>&lt;?php global $post; $count = 1; while ( have_posts() ) : the_post(); if(function_exists(&#39;p75GetVideo&#39;)){ if(p75GetVideo($post-&gt;ID)){ $vidclass = &#39;video&#39;; } else { $vidclass = &#39;&#39;; } } ?&gt; &lt;div id=&quot;post-&lt;?php the_ID() ?&gt;&quot; &lt;?php echo post_class($vidclass); ?&gt;&gt; &lt;div class=&quot;entry-content&quot;&gt; &lt;?php childtheme_post_header() ?&gt; &lt;a href=&quot;&lt;?php echo the_permalink() ?&gt;&quot;&gt; &lt;div class=&quot;post-title&quot;&gt;&lt;?php echo the_title(); ?&gt;&lt;/div&gt; &lt;?php $thumbnail = get_post_meta($post-&gt;ID, &#39;thumbnail&#39;, true); if( $thumbnail ): echo &#39;&lt;img class=&quot;attachment-thumbnail&quot; src=&quot;&#39; .get_post_meta($post-&gt;ID, &#39;thumbnail&#39;, true) . &#39;&quot; width=&quot;125&quot; height=&quot;125&quot; alt=&quot;&#39; . get_the_title() .&#39;&quot; /&gt;&lt;/a&gt;&#39;; elseif( has_post_thumbnail() ): the_post_thumbnail(&#39;medium&#39;); else: echo &#39;&lt;img class=&quot;attachment-thumbnail&quot; src=&quot;&#39; . get_bloginfo(&#39;stylesheet_directory&#39;) . &#39;/images/thumbnail-default.jpg&quot; width=&quot;125&quot; height=&quot;125&quot; alt=&quot;&#39; . get_the_title() .&#39;&quot; /&gt;&#39;; endif; ?&gt; &lt;/a&gt; &lt;/div&gt; &lt;/div&gt;&lt;!-- .post --&gt; &lt;?php if ($count==$thm_insert_position) get_sidebar(&#39;index-insert&#39;); $count = $count + 1; endwhile; ?&gt;</code></pre> <p>functions.php<br /> <pre><code>&lt;?php // add custom style sheet for the gallery category page function childtheme_css() { if (is_category(&#39;gallery&#39;)) {?&gt; &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;&lt;?php echo bloginfo(&#39;stylesheet_directory&#39;) ?&gt;/cat-gallery.css&quot; /&gt; &lt;?php } } add_action(&#39;wp_head&#39;, &#39;childtheme_css&#39;); // add image sizes, give that size a name and define its measurements add_image_size( &#39;medismall&#39;, 228, 160 ); // remove sidebar on category-page &quot;gallery&quot; function remove_sidebar() { if(is_category(&#39;gallery&#39;)){ return FALSE; } else { return TRUE; } } add_filter(&#39;thematic_sidebar&#39;, &#39;remove_sidebar&#39;); // add custom post header function childtheme_post_header(){ global $up_options; $gall_newlength = $up_options-&gt;new_length; if($gall_newlength){ $time = $gall_newlength; } else { $time = 3; } if ( (time()-get_the_time(&#39;U&#39;)) &lt;= ($time*86400) ): echo &#39;&lt;div class=&quot;new&quot;&gt;&lt;/div&gt;&#39;; endif; } // remove all loops and replace them with our thumbnail loop function remove_loops() { remove_action(&#39;thematic_categoryloop&#39;, &#39;thematic_category_loop&#39;); } add_action(&#39;init&#39;, &#39;remove_loops&#39;); // add our thumbnail loop instead function thumbnail_loop() { global $post; get_template_part( &#39;loop&#39;, &#39;thumbnail&#39; ); } add_action(&#39;thematic_categoryloop&#39;, &#39;thumbnail_loop&#39;); ?&gt;</code></pre> <p>everything looks pretty, in the gallery category</p> <p>is there some way thats not all super crazy hard to define what category pages look user this setup?</p> <p>i was like.. oh snaps! i did it.. lol but not unless i want all categories to look like that, which i dont. :( </p> helgatheviking on "index loop: latest post, exceprt post" http://forums.themeshaper.com/topic/index-loop-latest-post-exceprt-post#post-23318 Sun, 02 Oct 2011 19:53:51 +0000 helgatheviking 23318@http://forums.themeshaper.com/ <p>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. </p> <p>see the codex entry on the_post_thumbnail<br /> <a href="http://codex.wordpress.org/Function_Reference/the_post_thumbnail" rel="nofollow">http://codex.wordpress.org/Function_Reference/the_post_thumbnail</a></p> <p>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. </p> mrmikeman on "index loop: latest post, exceprt post" http://forums.themeshaper.com/topic/index-loop-latest-post-exceprt-post#post-23317 Sun, 02 Oct 2011 17:13:23 +0000 mrmikeman 23317@http://forums.themeshaper.com/ <p>the pictures come out huge, im seeing the timthumb script i take it i need to install that in the child theme folder? </p> helgatheviking on "index loop: latest post, exceprt post" http://forums.themeshaper.com/topic/index-loop-latest-post-exceprt-post#post-23315 Sun, 02 Oct 2011 11:46:38 +0000 helgatheviking 23315@http://forums.themeshaper.com/ <p>no, but you could update it by removing all the image references and replacing them with the_post_thumbnail() built-in function. </p> mrmikeman on "index loop: latest post, exceprt post" http://forums.themeshaper.com/topic/index-loop-latest-post-exceprt-post#post-23312 Sun, 02 Oct 2011 03:44:02 +0000 mrmikeman 23312@http://forums.themeshaper.com/ <p>there are several lines in there with catch_that_image, i assume i cant just delete from |catch to image| 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. </p> <p>do you know of any updated tutorials?</p> <p>i appreciate your help kathy </p> helgatheviking on "index loop: latest post, exceprt post" http://forums.themeshaper.com/topic/index-loop-latest-post-exceprt-post#post-23309 Sun, 02 Oct 2011 02:26:58 +0000 helgatheviking 23309@http://forums.themeshaper.com/ <p>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. </p> <p>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. </p> mrmikeman on "index loop: latest post, exceprt post" http://forums.themeshaper.com/topic/index-loop-latest-post-exceprt-post#post-23308 Sat, 01 Oct 2011 21:20:29 +0000 mrmikeman 23308@http://forums.themeshaper.com/ <p>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 "gallery" 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. . </p> mrmikeman on "index loop: latest post, exceprt post" http://forums.themeshaper.com/topic/index-loop-latest-post-exceprt-post#post-23307 Sat, 01 Oct 2011 21:11:18 +0000 mrmikeman 23307@http://forums.themeshaper.com/ <p>ok, so i did just that and now when i visit my category page i get</p> <p>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</p> <p>my header still loads on the page with this error. </p> helgatheviking on "index loop: latest post, exceprt post" http://forums.themeshaper.com/topic/index-loop-latest-post-exceprt-post#post-23306 Sat, 01 Oct 2011 20:40:47 +0000 helgatheviking 23306@http://forums.themeshaper.com/ <p>use above and call it category-{slug}.php<br /> see the codex on template hierarchy:</p> <p><a href="http://codex.wordpress.org/Template_Hierarchy" rel="nofollow">http://codex.wordpress.org/Template_Hierarchy</a> </p> mrmikeman on "index loop: latest post, exceprt post" http://forums.themeshaper.com/topic/index-loop-latest-post-exceprt-post#post-23305 Sat, 01 Oct 2011 19:46:22 +0000 mrmikeman 23305@http://forums.themeshaper.com/ <p>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.</p> <p>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</p> <p>thanks! </p> greenandi on "index loop: latest post, exceprt post" http://forums.themeshaper.com/topic/index-loop-latest-post-exceprt-post#post-13511 Tue, 29 Jun 2010 11:30:13 +0000 greenandi 13511@http://forums.themeshaper.com/ <p>wow thanks much!, it solved. </p> helgatheviking on "index loop: latest post, exceprt post" http://forums.themeshaper.com/topic/index-loop-latest-post-exceprt-post#post-13440 Sun, 27 Jun 2010 16:01:31 +0000 helgatheviking 13440@http://forums.themeshaper.com/ <p>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. </p> <p>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...</p> <pre><code>&lt;?php /* Template Name: Magazine Style Blog 2 column layout inspired by: <a href="http://hardiannazief.com/12/create-custom-posts-layout-in-home-page-thematic-child-theme/" rel="nofollow">http://hardiannazief.com/12/create-custom-posts-layout-in-home-page-thematic-child-theme/</a> */ ?&gt; &lt;?php // calling the header.php get_header(); ?&gt; &lt;/div&gt;&lt;!--end first main--&gt; &lt;?php // action hook for placing content above #container thematic_abovecontainer(); ?&gt; &lt;?php $paged = (get_query_var(&#39;paged&#39;)) ? get_query_var(&#39;paged&#39;) : 1; query_posts(&quot;paged=$paged&quot;); ?&gt; &lt;?php $count++; $clear=&#39;&#39;; ?&gt; &lt;?php while ( have_posts() ) : the_post() ?&gt; &lt;?php if ($count==1 AND !is_paged()){ ?&gt; &lt;div id=&quot;feature&quot; &gt; &lt;div id=&quot;feature-container&quot; class=&quot;clearfix&quot;&gt; &lt;?php if ( function_exists( &#39;p75GetVideo&#39; ) ) { if(p75HasVideo($post-&gt;ID)){ echo &#39;&lt;div class=&quot;thumb&quot;&gt;&#39;.p75GetVideo($post-&gt;ID,460,277).&#39;&lt;/div&gt;&#39;; } } else { echo catch_that_image(&quot;277&quot;,&quot;460&quot;); } ?&gt; &lt;div id=&quot;post-&lt;?php the_ID() ?&gt;&quot; class=&quot;&lt;?php thematic_post_class() ?&gt;&quot;&gt; &lt;div class=&quot;user-comments&quot;&gt; &lt;?php // Display comments link and edit link if (comments_open()) { $postcommentnumber = get_comments_number(); $postcomments = &#39; &lt;span class=&quot;comments-link&quot;&gt;&lt;a href=&quot;&#39; . get_permalink() . &#39;#comments&quot; title=&quot;&#39; . __(&#39;Comment on &#39;, &#39;thematic&#39;) . the_title_attribute(&#39;echo=0&#39;) . &#39;&quot;&gt;&#39;; $postcomments .= get_comments_number() . &#39;&lt;/a&gt;&lt;/span&gt;&#39;; } else { $postcomments = &#39; &lt;span class=&quot;comments-link&quot;&gt;&#39; . __(&#39;Closed&#39;, &#39;thematic&#39;) .&#39;&lt;/span&gt;&#39;; } echo $postcomments; ?&gt; &lt;/div&gt; &lt;?php thematic_postheader(); ?&gt; &lt;div class=&quot;entry-content&quot;&gt; &lt;?php the_content(&#39;&#39;.__(&#39;Read More &lt;span class=&quot;meta-nav&quot;&gt;&amp;raquo;&lt;/span&gt;&#39;, &#39;thematic&#39;).&#39;&#39;); //the_excerpt(); ?&gt; &lt;p&gt;&lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot; class=&quot;more-link&quot; title=&quot;Read More&quot;&gt;&lt;?php echo __(&#39;Read More &lt;span class=&quot;meta-nav&quot;&gt;&amp;raquo;&lt;/span&gt;&#39;, &#39;thematic&#39;); ?&gt; &lt;/a&gt;&lt;/p&gt; &lt;?php wp_link_pages(&#39;before=&lt;div class=&quot;page-link&quot;&gt;&#39; .__(&#39;Pages:&#39;, &#39;thematic&#39;) . &#39;&#38;after=&lt;/div&gt;&#39;) ?&gt; &lt;/div&gt; &lt;?php thematic_postfooter(); ?&gt; &lt;div class=&quot;clear_hentry&quot;&gt;&lt;/div&gt; &lt;/div&gt;&lt;!-- .post --&gt; &lt;?php comments_template() ?&gt; &lt;/div&gt;&lt;!-- #feature-container --&gt; &lt;/div&gt;&lt;!-- #feature --&gt; &lt;div id=&quot;main2&quot;&gt; &lt;div id=&quot;container&quot;&gt; &lt;div id=&quot;content&quot;&gt; &lt;?php // create the navigation above the content thematic_navigation_above(); // calling the widget area &#39;index-top&#39; get_sidebar(&#39;index-top&#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 &#39;index-top&#39; get_sidebar(&#39;index-top&#39;); // action hook for placing content above the index loop thematic_above_indexloop(); ?&gt; &lt;div id=&quot;container&quot;&gt; &lt;div id=&quot;content&quot;&gt; &lt;?php } ?&gt; &lt;div class=&quot;column &lt;?php if ($count &lt;= 4) { echo &#39;none&#39;; } elseif ($count &gt;=5 AND ($count&#38;1)) { echo &#39;one&#39;; } elseif ($count&gt;=4 AND !($count&#38;1)) { echo &#39;two&#39;; } else { echo &#39;six&#39;; $counter = 4;} ?&gt;&quot;&gt; &lt;div id=&quot;post-&lt;?php the_ID() ?&gt;&quot; class=&quot;&lt;?php thematic_post_class() ?&gt;&quot;&gt; &lt;div class=&quot;user-comments&quot;&gt; &lt;?php // Display comments link and edit link if (comments_open()) { $postcommentnumber = get_comments_number(); $postcomments = &#39; &lt;span class=&quot;comments-link&quot;&gt;&lt;a href=&quot;&#39; . get_permalink() . &#39;#comments&quot; title=&quot;&#39; . __(&#39;Comment on &#39;, &#39;thematic&#39;) . the_title_attribute(&#39;echo=0&#39;) . &#39;&quot;&gt;&#39;; $postcomments .= get_comments_number() . &#39;&lt;/a&gt;&lt;/span&gt;&#39;; } else { $postcomments = &#39; &lt;span class=&quot;comments-link&quot;&gt;&#39; . __(&#39;Closed&#39;, &#39;thematic&#39;) .&#39;&lt;/span&gt;&#39;; } echo $postcomments; ?&gt; &lt;/div&gt; &lt;?php thematic_postheader(); ?&gt; &lt;?php if(catch_that_image()) { //echo &#39;&lt;div class=&quot;thumb&quot;&gt;&lt;a href=&quot;&#39; .get_permalink(). &#39;&quot; title=&quot;&#39; .get_the_title(). &#39;&quot;&gt;&lt;img src=&quot;&#39; .get_stylesheet_directory_uri(). &#39;/scripts/timthumb.php?src=&#39; .urlencode(catch_that_image()). &#39;&amp;amp;h=100&amp;amp;w=200&amp;amp;zc=1&amp;amp;q=90&quot;&gt;&lt;/a&gt;&lt;/div&gt;&#39;; echo catch_that_image(&quot;150&quot;,&quot;200&quot;); } ?&gt; &lt;div class=&quot;entry-content&quot;&gt; &lt;?php //the_content(&#39;&#39;.__(&#39;Read More &lt;span class=&quot;meta-nav&quot;&gt;&amp;raquo;&lt;/span&gt;&#39;, &#39;thematic&#39;).&#39;&#39;); the_excerpt(); ?&gt; &lt;p&gt;&lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot; class=&quot;more-link&quot; title=&quot;Read More&quot;&gt;&lt;?php echo __(&#39;Read More &lt;span class=&quot;meta-nav&quot;&gt;&amp;raquo;&lt;/span&gt;&#39;, &#39;thematic&#39;); ?&gt; &lt;/a&gt;&lt;/p&gt; &lt;?php wp_link_pages(&#39;before=&lt;div class=&quot;page-link&quot;&gt;&#39; .__(&#39;Pages:&#39;, &#39;thematic&#39;) . &#39;&#38;after=&lt;/div&gt;&#39;) ?&gt; &lt;/div&gt; &lt;?php thematic_postfooter(); ?&gt; &lt;div class=&quot;clear_hentry&quot;&gt;&lt;/div&gt; &lt;/div&gt;&lt;!-- .post --&gt; &lt;/div&gt;&lt;!-- .column--&gt; &lt;?php //comments_template() ?&gt; &lt;?php } //end else ?&gt; &lt;?php if ($count==$thm_insert_position) { ?&gt;&lt;?php get_sidebar(&#39;index-insert&#39;) ?&gt;&lt;?php } ?&gt; &lt;?php $count = $count + 1; ?&gt; &lt;?php endwhile; ?&gt; &lt;?php // action hook for placing content below the index loop thematic_below_indexloop(); // calling the widget area &#39;index-bottom&#39; get_sidebar(&#39;index-bottom&#39;); // create the navigation below the content thematic_navigation_below(); ?&gt; &lt;/div&gt;&lt;!-- #content --&gt; &lt;/div&gt;&lt;!-- #container --&gt; &lt;?php // action hook for placing content below #container thematic_belowcontainer(); // calling the standard sidebar thematic_sidebar(); // calling footer.php get_footer(); ?&gt;</code></pre> greenandi on "index loop: latest post, exceprt post" http://forums.themeshaper.com/topic/index-loop-latest-post-exceprt-post#post-13435 Sun, 27 Jun 2010 06:27:45 +0000 greenandi 13435@http://forums.themeshaper.com/ <p>hi,</p> <p>i wanted to show 2 latest post and then follow older posts as an exceprt.</p> <p>this already give me 2 columns exceprt.<br /> i got this from <a href="http://hardiannazief.com/12/create-custom-posts-layout-in-home-page-thematic-child-theme/comment-page-1/#comment-4054" rel="nofollow">http://hardiannazief.com/12/create-custom-posts-layout-in-home-page-thematic-child-theme/comment-page-1/#comment-4054</a></p> <p><code><br /> &lt;?php<br /> function remove_index_loop() {<br /> remove_action('thematic_indexloop', 'thematic_index_loop');<br /> }<br /> add_action('init', 'remove_index_loop');</p> <p>function snippet_index_loop() {<br /> global $post;<br /> /* Count the number of posts so we can insert a widgetized area */ $count = 1;<br /> while ( have_posts() ) : the_post() ?&gt;<br /> &lt;?php $counter++; ?&gt;<br /> &lt;div class="column &lt;?php if ($counter == 1) { echo 'one'; } else { echo 'two'; $counter = 0; } ?&gt;"&gt;<br /> &lt;div class="clear-fix"&gt;<br /> &lt;div id="post-&lt;?php the_ID() ?&gt;" class="&lt;?php thematic_post_class() ?&gt;"&gt;<br /> &lt;?php thematic_postheader(); ?&gt;<br /> &lt;div class="entry-content"&gt;<br /> &lt;?php the_excerpt(); ?&gt;<br /> &lt;?php wp_link_pages('before=&lt;div class="page-link"&gt;' .__('Pages:', 'thematic') . '&#38;after=&lt;/div&gt;') ?&gt;<br /> &lt;/div&gt;<br /> &lt;?php thematic_postfooter(); ?&gt;<br /> &lt;/div&gt;&lt;!-- .post --&gt;<br /> &lt;/div&gt;&lt;!-- .clear-fix --&gt;<br /> &lt;/div&gt;&lt;!-- .column --&gt;</p> <p> &lt;?php comments_template();<br /> if ($count==$thm_insert_position) { get_sidebar('index-insert');}</p> <p> $count = $count + 1;<br /> endwhile;<br /> }<br /> add_action('thematic_indexloop', 'snippet_index_loop');</p> <p>?&gt;<br /> </code></p> <p>thanks,appreciate with the help. i'm not good with php. </p>