Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter memphis2k

    (@memphis2k)

    Got it working…

    query_posts(array('showposts' => 100, 'post_parent' => 106, 'post_type' => 'page', 'orderby'=>menu_order,'order'=>ASC));

    Thanks

    Thread Starter memphis2k

    (@memphis2k)

    Ok, i’m still puzzled. I need to keep the Array in the query_post but how can I add the order=ASC and not get a PHP error? I’m using it to generate specific posts, but the order is backwards. I’d like to sort by Page Order in WP. Its doing it fine, just backwards.

    <?php if ( (is_page('Products')) )  {
    
    		query_posts(array('showposts' => 100, 'post_parent' => 106, 'post_type' => 'page'));
    
    		while (have_posts()) {
    
    			the_post(); // vital
    
    			?>
    			<a href="<?php the_permalink() ?>" class="grid-product"><?php the_title(); ?></a>
    		<?php }
    
    		wp_reset_query();  // Restore global post data
    
    	}
    	?>
Viewing 2 replies - 1 through 2 (of 2 total)