![]() |
|
||||||
|
|
Thread Tools | Display Modes |
|
#4
|
||||
|
||||
|
I just updated the homepage middle section like this:
Code:
<div class="homepagemiddle">
<div class="posts">
<?php $featured_cat_1 = get_option('metro_featured_vid_1'); $featured_vid_1_num = get_option('metro_featured_vid_1_num'); if(!$featured_vid_1) $featured_vid_1 = 1; //setting a default ?>
<h4><?php echo cat_id_to_name($featured_vid_1); ?></h4>
<?php $recent = new WP_Query("cat=".$featured_vid_1."&showposts=".$featured_vid_1_num); while($recent->have_posts()) : $recent->the_post();?>
<?php if( get_post_meta($post->ID, "thumbnail", true) ): ?>
<a href="<?php the_permalink() ?>" rel="bookmark"><img style="float:left;margin:0px 10px 0px 0px;" src="<?php echo get_post_meta($post->ID, "thumbnail", true); ?>" alt="<?php the_title(); ?>" /></a>
<?php else: ?>
<?php endif; ?>
<h1><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h1>
<?php the_content_limit(150, ""); ?><div class="link"><a href="<?php the_permalink() ?>">Read more</a></div>
<?php endwhile; ?>
</div>
</div>
__________________
WP 3.3.2 Genesis 1.8.1 |
| Tags |
| video section |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Removing eNews & Updates Section | ReallyRich.com | General Discussion | 3 | 08-05-2009 09:08 AM |
| Removing section house icons? | Andare | General Discussion | 3 | 08-01-2009 07:16 PM |
© Copyright 2012 Copyblogger Media LLC · StudioPress™ is a trademark of Copyblogger Media LLC
Privacy Policy | Refund Policy | Terms of Service | Affiliate Program | Contact Us