Hi All
I am just working on my first wordpress website and got into a little trouble.
I am using custom post types for media releases and a custom archive page to call the media release title and issuer and link them both to the post.
The custom post type is working perfectly and so is the archive page with one small problem, the first title the archive page pulls is not linked, however each subsequent title and issuer is. Is there something I have missed from the following code?
Cheers
<?php
$query = new WP_Query( array( 'post_type' => array( 'media_releases' ) ) );
while ( $query->have_posts() ) : $query->the_post();
echo '
<table><tr><td><a href="';
the_permalink();
echo '">';
the_title();
echo '</a></td>'; ?>
<td>
<a href="<?php the_permalink(); ?>">
<?php $terms_as_text = get_the_term_list( $post->ID, 'issuer', '', ', ', '' ) ; ?>
<?php echo strip_tags($terms_as_text); ?></a></td></tr></table>
<?php endwhile; ?>