can anyone tell me if there's anything wrong with this ? Yes it works, but it makes my other php not working. <?php query_posts('showposts=1&cat=1'); ?> <?php while (have_posts()) : the_post(); ?> <a href="<?php the_permalink() ?>" title="Permanent Link to <?php the_title(); ?>" rel="nofollow"><img src="http:/abc.com/images/<?php $values = get_post_custom_values("Image"); echo $values[0]; ?>" style="padding:3px; border:1px solid #AEAEAE;" alt=" " width="285" id="leadpic" /></a> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>" class="title"><?php the_title(); ?></a> <?php the_excerpt(); ?> <div class="right"><br /><a href="<?php the_permalink() ?>" rel="nofollow" title="Permanent Link to <?php the_title(); ?>">Continue reading »</a></div> <?php endwhile; ?> It shows exactly what i want, however it makes my sidebar stuffs not working SIDEBAR <?php if (is_home()) { ?> <p>ABC</p> <?php } ?> ** Can someone let me know! Thanks!
are you sure that php function: is_home() returns true? because your sidebar as you posted it has if condition
Thanks for trying to help - the problem is that My sidebar will not show the home true statement, when the query was used However when i remove the query post php, my sidebar functions normally (shows during homepage, and not during other pages) I tried all ways and means, can other php leads to this problem ? maybe i didnt close a php properly or something ?
Gosh .. figured it out ! hah. I need this <?php wp_reset_query(); ?> !! Thanks for all who looked in my thread!