displaying posts using the order attribute
-
I have a custom post type which includes the ‘Order’ attribute. I’ve searched for a solution to get WP to actually use the ‘order’ value to display the posts (by default they are displayed in date order).
I can see from the codex that I need to add the following to my loop:
query_posts( array('orderby'=>'menu_order' ) );
But unfortunately I just can’t get it working. I’m using a modified loop from Twenty Ten theme. Where exactly should I be placing the above code?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘displaying posts using the order attribute’ is closed to new replies.