I have a theme I'm trying to edit. Frustratingly every time I publish a new page something in the code won't let me rearrange the order of the pages after I've published them. I've even tried using page order plugins which seem to work in the admin but not on the live view.
This is the code I'm talking about, at the end you'll notice 'order by ID', even if i delete this it has no effect so what can I put instead that enables me to rearrange pages. This theme does not include wp_pages_list!
$pages = $wpdb->get_results("SELECT post_name, post_title, ID FROM $wpdb->posts WHERE post_type='page'and ID < 303" order by ID);