![]() |
|
||||||
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
I successfully added a new section at the bottom of my page "From the Desk" but all posts are showing up and not just "from the desk" posts in that category. I added my category where it said to put it but it's still not working properly.
http://packandexplore.com/blog/ Here's the code: <div class="hpbottom"> <h3>FROM THE DESK</h3> <?php $recent = new WP_Query("cat=From the Desk&showposts=1"); while($recent->have_posts()) : $recent->the_post();?> <?php if( get_post_meta($post->ID, "thumb", true) ): ?> [img]<?php bloginfo('template_directory'); ?>/tools/timthumb.php?src=<?php echo get_post_meta($post->ID, [/img]&h=<?php echo get_theme_mod('featured_bottom_thumb_height'); ?>&w=<?php echo get_theme_mod('featured_bottom_thumb_width'); ?>&zc=1" alt="<?php the_title(); ?>" /> <?php else: ?> <?php endif; ?> <?php the_title(); ?> <?php the_content_limit(350, __("[Read more]", 'studiopress')); ?> <hr/> <?php endwhile; ?> <?php $cat = get_category(get_theme_mod('featured_bottom')); ?> Read More From the Desk </div> </div> |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Comment section not showing up in top post in homepage | mrsgooding | General Discussion | 3 | 02-15-2010 01:44 PM |
| video embed code showing in Featured section homepage | macsupportcasts | General Discussion | 2 | 09-25-2009 08:44 AM |
| Pages in Featured Category Section on homepage | macsters | General Discussion | 5 | 06-12-2009 08:32 PM |
| Getting post to appear under proper categories on Homepage | 1lkydog | General Discussion | 1 | 03-18-2009 12:47 PM |
| html showing in homepage featured section | johnryan | General Discussion | 2 | 03-11-2009 12:56 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