How to display all posts within a custom post type?
-
Hi,
I have a page called classes. I have a custom post type set up to add all the classes. I would like this custom post type and all it’s posts to be displayed on the classes page. I have found that I can use:
<?php query_posts( 'post_type=Beaudesert-Class'); ?> <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> <?php if ( is_front_page() ) { ?> <?php } else { ?> <?php } ?>
My problem is that it overrides everything on the classes page like the title and the text. I would like the custom post type content to appear below the classes text and title.
I would like it to be set like this:
Classes title
intro to classesCustom post type post title
custom post type textCustom post type post title
custom post type textCan anyone help me with this?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to display all posts within a custom post type?’ is closed to new replies.