I followed the example in the book for creating a custom slider and had some issues with custom post types registering which resulted in a
Fatal error: Call to a member function have_posts() on null
using this piece of code:
$args = array(
'posts_per_page' => '-1',
'post_type' => 'slides',
$mySlides = new WP_Query( $args );
while ( $myslides -> have_posts() ) : $myslides -> the_post();
<a href="<?php the_permalink(); ?>"><?php the_title(); ?>slides</a><br />
What does the error mean exactly?
I've set up a custom post type as the book states?
I've relinquished using global variables?
Any tips pointers?