Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter teeds

    (@teeds)

    Thanks MichaelH

    This is what I ended up using, it works but the opening and closing of the php doesn’t look correct.

    <?php
    					$args=array(
    						'orderby' => 'title',
    						'order' => 'ASC',
    						'post_parent' => 0,
    						'post_type' => 'page',
    						'post_status' => 'publish',
    						'posts_per_page' => -1,
    						'caller_get_posts'=> 1
    					);
    					$my_query = null;
    					$my_query = new WP_Query($args);
    					if( $my_query->have_posts() ) {
    						// List of Pages (just parent pages)
    						while ($my_query->have_posts()) : $my_query->the_post(); ?>
    						<li><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><span><?php echo get_post_meta($post->ID, 'description', true); ?></span><br /><?php the_title(); ?></a></li>;
    						<?php endwhile;
    					}
    					wp_reset_query();  // Restore global post data stomped by the_post().
    			?>

Viewing 1 replies (of 1 total)