Hi esmi!
THANKS for replying, and for the link about get_posts. Just asking…since I just need a single post, shouldn’t get_post be better suited for this?
I tried the code you recommended, but the category page did not display the single post containing the ContactForm7 code.
Instead, I think it displayed the content of the posts addressed in The Loop. Just to clarify, my category page is showing just the title of the single post (a product page basically) and a thumbnail associated with it.
Here’s the link.
Here’s the entire code of that category page.
<?php get_header(); ?>
<div class="home is-single fix">
<div class="left1">
<?php include (TEMPLATEPATH . '/sidebar.php'); ?>
</div>
<div class="right1">
<div class="recent-leads fix">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" class="<?php echo ( is_first_post($post->ID) ) ? 'main-post-bg' : 'secondary-post-bg left'; ?>">
<?php if ( is_first_post($post->ID) ) $img_src = get_post_meta($post->ID, 'lead_image', true);
else $img_src = get_post_meta($post->ID, 'secondary_image', true);
if ( $img_src == '' ) $img_src = '/wp-content/themes/theunstandard/images/theunstandard-blank.png';
?>
<?php include (TEMPLATEPATH . '/includes/index_dynamic.php'); ?>
<div class="title-insert">
<h3><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3>
</div>
</div>
<?php endwhile; ?>
<div class="entry navigation radius-link fix">
<br class="clear" />
<p class="left"><?php previous_posts_link('« previous'); ?></p><p class="right"><?php next_posts_link('next »'); ?></p>
</div>
<?php else : ?>
<div class="post single">
<h2>No matching results</h2>
<div class="entry">
<p>You seem to have found a mis-linked page or search query with no associated or related results.</p>
</div>
</div>
<?php endif; ?>
</div>
</div>
</div>
<?php get_footer(); ?>
I tried placing it before and after the <?php endwhile; ?>
portion of the code, but somehow I think the <?php the_content();?>
you recommended using is still referring back to the posts retrieved in the loop?
Please advice.