need help with hack/php query code
-
I need some help with fine tuning the code for “the LOOP”. I’m trying to pull a query from my weblog into my splash page. I had it working so far, I just would like it to list just one post and link directly to my index.php instead of the individual posts.
does anyone have an idea how I could hack the code below to achieve my desired result.any thoughts?
Thank you in advance.my current testing splash page is located:
http://www.chazsouthard.org/splash_3.php‘
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?><?php if ( !(in_category(‘3’)) ) { ?>
<div class=”post”>
<h2><a>"><?php the_title(); ?></a></h2><small><?php the_time(‘F jS, Y’); ?></small>
<div class=”entry”>
<?php the_excerpt(); ?>
</div></div> <!– closes the first div box –>
<?php } ?> <!– Close the if statement. –>
<?php endwhile; else: ?>
Sorry, no posts matched your criteria.
<?php endif; ?>`
The topic ‘need help with hack/php query code’ is closed to new replies.