Sort CPT archive by order prevents sorting in admin

I forgot to add !is_admin() check to my pre_get_posts function. Altered section of code below. add_action( ‘pre_get_posts’, ‘mpe_portfolio_sort_order’); function mpe_portfolio_sort_order($query){ if(is_archive() && ! is_admin() ): $query->set( ‘order’, ‘ASC’ ); $query->set( ‘orderby’, ‘menu_order’ ); endif; };

Add Standard Page Attributes Metabox for Page Parent

Although not listed in the following resources, seems that parent_id is a reserved name in $_POST and $_REQUEST: Function_Reference/register_taxonomy#Reserved_Terms List of reserved names in $_POST and $_REQUEST used by WordPress 3.5 This code works in a Woocommerce product page to show a dropdown of regular pages. Also, in your code, you were missing the get_post_meta … Read more