Giri
Forum Replies Created
-
AuthorPosts
-
Hi Ding,
Please use code snippets plugin to add custom codes.
https://wordpress.org/plugins/code-snippets/
Just add the post types in this array.
$excluded_post_types = array('gd_place', 'gd_job');
I have used gd_place and gd_job as an example.
You can get the post type names in this page.
wp-admin/admin.php?page=geodirectory&tab=geodir_manage_custom_posts
Thanks
Don’t worry.
I’ll explain everything.
Thanks
This reply has been marked as private.This reply has been marked as private.Ok Ron,
So everything ok now?
Hi Mark,
I’m facing the same problem when I use /wp-admin
But I have used /gd-login and it works with the creds you provided earlier
This reply has been marked as private.This reply has been marked as private.Yes
Our team is a distributed team. Each member is from different country. If you use any GeoIP block plugin, allow login only from US and block other countries, then only the US person can login with your credentials.
Thanks
Still not working.
Make sure you are not using any GeoIP block plugins.
You are welcome.
Unable to login.
Checking..
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
You are welcome 🙂
-
AuthorPosts