Need help? Check out our Support site, then

Ordering Pages by 'Order' attribute value does not work

  1. I have 6 pages in my site. I have changed the 'Order' attribute numbering to how I want the pages to show up on my site from 1-6. But the query_post() does not seem to present the pages in the order set in the 'Order attribute. here is my query_post() code. In the code below the 'order attributes are 1 thru 6 for pages 2,5,50,120,122,7. So I want the pages to appear exactly in that same order. What is wrong?

    $args = array(
    'post_type' => 'page',
    'post__in' => array(2,5,50,120,122,7),
    'orderby'=> order
    query_posts($args); ?>'

    The blog I need help with is

  2. If you are playing with PHP, you are NOT in the right forum as we can't accesss any of the underlying theme files and we cannot use script of any kind.

    You need to be over at http://wordpress.ORG/support/ which is where self-hosted blogs are supported.

Topic Closed

This topic has been closed to new replies.

About this Topic