Show custom post archive when custom post not specified

I have a custom post type called produce set up in WordPress and a custom taxonomy called produce_category. The URL format for posts in this custom post type is in this format http://mywebsite/produce/%produce_category%/%postname%/. Of course %produce_category% and %postname% get substituted accordingly, a working example url would be http://mywebsite/produce/fruits-and-vegetables/avocado. What I would like to do is…

Custom Meta Box (SELECT2) Not Saving Taxonomy Terms

I have the code, /* * Add a metabox * I hope you’re familiar with add_meta_box() function, so, nothing new for you here */ add_action( ‘admin_menu’, ‘rudr_metabox_for_select2_cat’ ); function rudr_metabox_for_select2_cat() { add_meta_box( ‘rudr_select2’, ‘Tune Category’, ‘rudr_display_select2_cat_metabox’, ‘post’, ‘side’, ‘high’ ); } /* * Display the fields inside it */ function rudr_display_select2_cat_metabox( $post_object ) { //…

Custom Meta Box (SELECT2) Not Saving Taxonomy Terms

I have the code, /* * Add a metabox * I hope you’re familiar with add_meta_box() function, so, nothing new for you here */ add_action( ‘admin_menu’, ‘rudr_metabox_for_select2_cat’ ); function rudr_metabox_for_select2_cat() { add_meta_box( ‘rudr_select2’, ‘Tune Category’, ‘rudr_display_select2_cat_metabox’, ‘post’, ‘side’, ‘high’ ); } /* * Display the fields inside it */ function rudr_display_select2_cat_metabox( $post_object ) { //…