Custom post type in loop
i’ve got three custom post types on the site i’m working on. i’m currently using the yoko theme. the reason being that users will upload the content, and there are difirent info per post type. every custom post type have its own post format and categories. my problem is, my loop in the category, archive, index and page templates looks like this
<?php /* Start the Loop */ ?> <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( 'content', get_post_format() ); ?> <?php endwhile; ?>
where <?php get_template_part( ‘content’, get_post_format() ); ?>
is the post format i use in the custom post type.
So there is nothing showing up on these respective pages. how do i get these custom posts to show up on the respective pages, and what are the best way to do it,
- The topic ‘Custom post type in loop’ is closed to new replies.