I don't consider myself to be a newb, I've had a loop of all the pages work before, but right now one of my custom loops on my page template (which is used as the index page of the site), will not show a list of 'pages'.
<?php get_header(); ?>
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> // first I want to call the information for the page itself -- i've tried removing this and it has no effect.
<div class="about"><?php the_content(); ?></div>
<?php endwhile;
wp_reset_query();
// end frontpage while ?>
<div id="featured" >
<ul class="ui-tabs-nav">
<li class="ui-tabs-nav-item ui-tabs-selected" id="nav-fragment-1"><a href="#fragment-1"><span>About the film festival</span></a></li>
<?php
$get_pages = ( //the loop to get all the pages on the site
array(
'post_type' => 'page',
'posts_per_page' => -1,
));
query_posts( $get_pages );
if ( have_posts() ) while ( have_posts() ) : the_post();
?>
// this here is what I want to happen for each page, but it shows up for anything aside from page
<li class="ui-tabs-nav-item" id="nav-fragment-2"><a href="#fragment-2"><span><?php the_title() ?></span></a></li>
<?php endwhile; //end pages while
wp_reset_query();
wp_reset_postdata(); ?>
Am I missing something crucial? Is there a stupid mistake? I am clueless at the moment. Tanks for anything that might help here.