im using PHP-Exec, and it’s working, except a weird thing is happening. it is just supposed to display post titles, which it’s doing, but under all the titles it is displaying all the posts. take a look: https://70.103.140.131/~cohaorg/?page_id=160
here’s my code if anyone would be kind enough to take a look:
<phpcode>
<?php query_posts('cat=2,18,15'); ?>
<?php if (have_posts()) : ?>
<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post">
<h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h3>
<h5>By <?php
$custom = get_post_custom_values('Author');
if (count($custom) != 0)
{
// do your thing
echo $custom[0];
// maybe do more things
} ?>
</h5>
<small><?php the_time('l, F jS, Y') ?></small>
</div>
<?php endwhile; ?>
<?php else : ?>
<h2 class="center">Not Found</h2>
<?php include (TEMPLATEPATH . '/searchform.php'); ?>
<?php endif; ?>
</phpcode>