Hi Ding,
I have added a filter in GD core to modify the output of that dropdown. It will be avilable in next release.
In the meantime follow these steps
You need to add this line
$taxonomy = apply_filters('geodir_pp_category_taxonomy', $taxonomy);
in
wp-content/plugins/geodirectory/geodirectory-functions/general_functions.php
Around line number 2770
AFTER this code
$taxonomy = array();
if ( ! empty( $gd_post_type ) ) {
$taxonomy[] = $gd_post_type . "category";
} else {
$taxonomy = geodir_get_taxonomies( $gd_post_type );
}
Once you are done with that edit your child theme functions.php file and then add this code
function exclude_gd_taxonomies($taxonomies) {
$excluded_post_types = array('gd_place', 'gd_job');
foreach ($excluded_post_types as $ptype) {
$cat = $ptype . "category";
if(($key = array_search($cat, $taxonomies)) !== false) {
unset($taxonomies[$key]);
}
}
return $taxonomies;
}
add_filter('geodir_pp_category_taxonomy', 'exclude_gd_taxonomies');
You can also provide me admin credentials. So I can apply them.
Thanks