Site icon Hip-Hop Website Design and Development

Menu Order updating routinely

I’ve a customized submit kind with page-attributes declared so I’m able to put in a menu_order quantity/area for sorting them by way of menu order. This all works as anticipated besides this subsequent difficulty.

I reset all of the customized submit kind menu_order fields to 0 (int) with sql. I then refresh the location. WordPress then auto-increments menu order as an alternative of leaving all of them at 0. Does anybody know why this behaviour would occur?

Right here is the sql for resetting all menu_order gadgets to 0.

UPDATE wp_posts SET menu_order=0 WHERE post_type='custom_post_type'

Any assist can be appreciated.