Ordering Pages by ‘Order’ attribute value does not work

  • Author
  • #428353


    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 rmgala.wordpress.com.


    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.

The topic ‘Ordering Pages by ‘Order’ attribute value does not work’ is closed to new replies.