![]() |
|
||||||
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Hi All,
I was wanting to change the section below the tabber from displaying 3 x posts for each of the 4 categories to simply displaying a snipet of text and a link to each of my 4 categories (and a thumbnail too). So basically instead of pumping out recent posts I would like it to just give me small boxes of text relating to categories only. What would be the best way to achieve this? This is the coding at the moment: Code:
<div id="homepageleft">
<div class="featured">
<h3>Plumbing Services</h3>
<?php $recent = new WP_Query("cat=5&showposts=3"); while($recent->have_posts()) : $recent->the_post();?>
<?php if( get_post_meta($post->ID, "thumbnail", true) ): ?>
[img]<?php echo get_post_meta($post->ID, [/img]" alt="alt text" />
<?php else: ?>
[img]<?php bloginfo('template_url'); ?>/images/thumbnail.jpg[/img]
<?php endif; ?>
<?php the_title(); ?>
<?php the_content_limit(80, ""); ?>
<div style="border-bottom:1px dotted #94B1DF; margin-bottom:10px; padding:0px 0px 10px 0px; clear:both;"></div>
<?php endwhile; ?>
More Featured Category Posts
</div>
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Tabber Section Missing... | liannef | General Discussion | 12 | 05-20-2010 01:31 PM |
| Replace Tabber Section with Featured Post Gallery | INDT | General Discussion | 3 | 10-16-2009 01:50 PM |
| Blog Post before Tabber Section on Home Page | JoSoss | General Discussion | 3 | 09-02-2009 10:50 AM |
| Keeping same post in tabber section | bb0818 | General Discussion | 4 | 08-28-2009 03:33 PM |
| Tabber section?? | rachelle123 | General Discussion | 14 | 11-25-2008 09:12 AM |
© Copyright 2012 Copyblogger Media LLC · StudioPress™ is a trademark of Copyblogger Media LLC
Privacy Policy | Refund Policy | Terms of Service | Affiliate Program | Contact Us