I’m using this line of code to display my custom post types, and it works like a charm.
<?php query_posts( array( 'post_type' => array('essay', 'tutorial', 'post', 'gamereview') ) ); ?>
However, I recently noticed that my archive pages are not working because of this. When I remove the code, the archive page functions normally again.
Can somebody please show me a better way to make it work?
- The topic ‘query_posts in loop.php overrides the archive page’ is closed to new replies.