I can get custom posts to display on my site. However, I want to filter the posts by category.
The custom posts are displaying on this page: http://www.africanhealthleadership.org/resources/toolkit/
The custom posts are the tools i.e. Desk Research and Assessment Tool
Under Preparation, I only want to show Desk Research. However ALL the tools are displaying under Preparation.
I used this code to get the tools to display. Clearly category_name is not working, but I am not sure how to fix. Thank you for any help.
` 'portfolio', 'category_name' => 'preparation' ) ); ?>
have_posts() ) : $loop->the_post(); ?>
<?php the_title( '<h2 class="entry-title"><a href="' . get_permalink() . '" title="' . the_title_attribute( 'echo=0' ) . '" rel="bookmark">', '</a></h2>' ); ?>