![]() |
|
||||||
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
I am not sure how to update some php for the Classic Lifestyle theme. I am updating a site that has the WP_Querys in the php code. Below is the code for one of the calls to action. The problem I am having is that it is using the category id from the entry above to get some information. What I would like to find out is there another place in the code below that I have to put the Category ID, so it recognizes this one. I hope this makes sense. Thanks for your time. The part marked in RED is calling on a different category not the one I need.
<div class="hpbottom"> <h3>Fort Myers Area Community News</h3> <?php $recent = new WP_Query("showposts=4&cat=11"); while($recent->have_posts()) : $recent->the_post();?> <?php if( get_post_meta($post->ID, "thumb", true) ): ?> <a href="<?php the_permalink() ?>" rel="bookmark"><img class="thumb" src="<?php bloginfo('template_directory'); ?>/tools/timthumb.php?src=<?php echo get_post_meta($post->ID, "thumb", $single = true); ?>&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(); ?>" /></a> <?php else: ?> <?php endif; ?> <strong><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></strong> <?php the_content_limit(350, __("[Read more of this review]", 'studiopress')); ?> <hr/> <?php endwhile; ?> <?php if(get_theme_mod('featured_bottom')) : ?> <strong><a href="<?php echo get_category_link(get_theme_mod('featured_bottom') ); ?>" rel="bookmark"><?php _e("Read more posts from ", 'studiopress'); echo get_cat_name(get_theme_mod('featured_bottom')); ?></a></strong> <?php endif; ?> </div> |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| lifestyle classic theme home page | divadi | General Discussion | 1 | 05-26-2010 10:26 PM |
| Lifestyle Theme Classic and Genesis | griverss99 | General Discussion | 2 | 05-02-2010 11:38 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