Support

Search results for ""

Sorry, no results found. Perhaps you would like to search the community forum?
All Topics
ming xuan

How to change post type

When i choose 訂單 order type, and click View just go post page…
I couldn’t edit 訂單 order type columns…

4 years, 4 months ago
Stefan
Developer

Hi Ming,

I’m not familiar with the language but my guess is that you have a JS error, probably because of a conflict with select2 library. When you change the dropdown with post type, you should automatically go to the edit screen for that post type. Are you using WooCommerce with some extra addons?

Please also follow this topic that also has a fix at the bottom of the discussing that may help you. We are looking for a fix for the upcoming release.

4 years, 4 months ago
ming xuan

Thanks i use your code and work now

function cac_select2_conflict_fix(){
if( function_exists( 'cac_is_setting_screen' ) && cac_is_setting_screen() ){
       wp_deregister_script( 'select2' );
   }
}
add_action( 'admin_enqueue_scripts', 'cac_select2_conflict_fix', 11 );
4 years, 4 months ago
Stefan
Developer

Great that it works, but please notice that this is just a temporary fix.
I will close this ticket

4 years, 4 months ago

You must be logged in to reply to this topic.