Category Lists Not Linking to Custom Post Type Posts
-
I have a custom post type “Blog” set up. On the blog page, I have a dynamic sidebar that lists categories of posts. The lists do show up, but when I click on them, they don’t go to “Blog” posts.
This is my sidebar.php;
<div id="blogColumn2"> <ul class="sidebar"> <?php if ( ! dynamic_sidebar() ) : ?> <li><?php get_search_form(); ?></li> <h2><?php _e( 'Archives'); ?></h2> <li><?php wp_get_archives( 'type=monthly' ); ?></li> <h2><?php _e( 'Categories'); ?></h2> <li><?php wp_list_cats(); ?></li> <?php endif; ?> </ul> </div>
And this is my category.php;
<?php get_header(); ?> <div id="content" class="group"> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <?php get_sidebar(); ?> <div id="blogColumn1"> <div class="blogHeader"><?php the_title(); ?><p class="date"><?php echo get_the_date(); ?></p></div> <div class="blogEntry"><?php the_content(); ?> </div> </div> </div><!--#content --> <?php endwhile;endif;?> <?php get_footer(); ?>
I’d appreciate your help.
Best,
Jaeeun
- The topic ‘Category Lists Not Linking to Custom Post Type Posts’ is closed to new replies.