[Resolved] Assigned Custom Post Type ID but displays all
I only want to display one CPT with ID number 81 and am having a nightmare trying to understand why all my custom posts are showing on the homepage. The code is as simple as the following:
<?php//The Query query_posts('post_type=Homepage&post=81'); // this should only call the Homepage custom post with ID 81 //The Loop if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> //doing something here <?php endwhile; else: ?> //doing something here <?php endif; //Reset Query wp_reset_query(); ?>
Can anyone help? I am clearly missing something out. Thank you
- The topic ‘[Resolved] Assigned Custom Post Type ID but displays all’ is closed to new replies.