I found this question asked elsewhere, but it was unanswered, so I’m asking myself.
I have a custom post type (Features) that shares my Categories and Tags with my standard posts. I’m listing my categories with this:
<?php wp_list_categories('title_li=&hierarchical=false'); ?>
The resulting list includes categories that are applied only to Features. I know this is working because some of these point to empty pages. So the problem is with the loop that I’m using on my archive page.
Here’s the loop:
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<?php $custom_classes = get_post_meta($post->ID, 'custom_post_class', false); ?>
<article <?php post_class($custom_classes) ?> id="post-<?php the_ID(); ?>" role="article">
<header>
<hgroup>
<h1><a href="https://wordpress.stackexchange.com/questions/33864/<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h1>
<h2 class="vcard">By <?php the_author_posts_link() ?></h2>
<h3><time datetime="<?php echo get_the_date('c'); ?>"><?php echo get_the_date('F jS, Y'); ?></time></h3>
</hgroup>
</header>
<section class="text clearfix">
<?php the_content(); ?>
<?php edit_post_link('Edit this post ✍', '<p>', '</p>'); ?>
</section>
</article>
<?php endwhile; ?>
Can you tell me what I’d need to add in order to get my custom post type to show up here?