I am using a recipe plugin that uses a custom post type of 'recipe'. I currently have multiple lists of recipes from each category on a page. I am trying to get the title of each category list to link to an archive list of those posts within each category. This is not working, and I'm not sure if I need to create a new archive template, or if I can do it within this code.
<ul class="subcats-list">
<h2 class="subcats-title"><a href="<?php echo get_category_link(39); ?>" title="No Cook"><?php echo get_cat_name(39); ?></a></h2>
<?php
$recipes = new WP_Query();
$recipes->query('showposts=5&orderby=rand&cat=39&post_type=recipe');
while ($recipes->have_posts()) : $recipes->the_post(); ?>
<li><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></li>
<?php endwhile; ?>
</ul><!-- subcat -->
NOTE: the title for each category list does currently link to the category archive page, but there are no posts listed. Just a black archive page.
