Kiran
Forum Replies Created
-
AuthorPosts
-
Hello Edgar,
REST API endpoint for gd_event is disabled from Tools > REST API Controller > Post Types. You need to enable it.
Kiran
No problem, we have fixed this from our side.
It will be in next releases as well. So don’t worry about future updates.
Kiran
Hi Tandem,
Please check and let us know.
Kiran
This reply has been marked as private.This reply has been marked as private.This reply has been marked as private.Hello Martin,
Please check and let us know.
Kiran
Hello Lorenza,
You have selected max_level=”1″ & hide_empty=”1″. You have both parent categories are empty(no listing). To display child category, parent category must requires to have any listing assigned.
Let us know.
FYI: On you site pages there is javascript error:
SyntaxError: missing ) after argument list. Please fix this to prevent JavaScript related issues on site.
Regards,
KiranThis reply has been marked as private.This reply has been marked as private.This reply has been marked as private.This reply has been marked as private.April 5, 2019 at 11:31 am in reply to: Can we still put a business listing into multiple categories in V2? #478534Hello Mitch,
For GeoDirectory v2 use following snippet.
/** * Add CSS class to listing layout for empty rating. */ function gd_snippet_hide_no_review_text( $classes, $class, $post_ID ) { global $gd_post; if ( ! empty( $post_ID ) && ! empty( $gd_post ) && ! empty( $gd_post->ID ) && $gd_post->ID == $post_ID && empty( $gd_post->rating_count ) ) { $classes[] = 'gd-custom-no-review'; // CSS class } return $classes; } add_filter( 'post_class', 'gd_snippet_hide_no_review_text', 10, 3 );Regards,
KiranHello Edgar,
In GeoDirectory v2 we have enhanced API feature.
To use API with GeoDirectory v2 you have to use v2 in all api route, like https://www.YOURSITE.com/wp-json/geodir/v2/ ( ex: https://ppldb.com/v2/wp-json/geodir/v2/ ).
Here are some GeoDirectory API Routes:
Base route: https://www.YOURSITE.com/wp-json/geodir/v2/
Post types: https://www.YOURSITE.com/wp-json/geodir/v2/types/
CPT listings: https://www.YOURSITE.com/wp-json/geodir/v2/CPT
CPT categories: https://www.YOURSITE.com/wp-json/geodir/v2/CPT/categories
CPT tags: https://www.YOURSITE.com/wp-json/geodir/v2/CPT/tags
Taxonomies: https://www.YOURSITE.com/wp-json/geodir/v2/taxonomies
Reviews: https://www.YOURSITE.com/wp-json/geodir/v2/reviews
Fields: https://www.YOURSITE.com/wp-json/geodir/v2/fields
CPT Fields: https://www.YOURSITE.com/wp-json/geodir/v2/CPT/fields
Settings: https://www.YOURSITE.com/wp-json/geodir/v2/settings
System status: https://www.YOURSITE.com/wp-json/geodir/v2/system_status
Countries: https://www.YOURSITE.com/wp-json/geodir/v2/countries
Map Markers: https://www.YOURSITE.com/wp-json/geodir/v2/markers
Location types: https://www.YOURSITE.com/wp-json/geodir/v2/locations
Location countries: https://www.YOURSITE.com/wp-json/geodir/v2/locations/countries
Location regions: https://www.YOURSITE.com/wp-json/geodir/v2/locations/regions
Location cities: https://www.YOURSITE.com/wp-json/geodir/v2/locations/cities
Location neighbourhoods: https://www.YOURSITE.com/wp-json/geodir/v2/locations/neighbourhoodsMake sure API settings enabled at GeoDirectory > Settings > API > Enable the REST API.
FYI: You have installed WP-API plugin which is no longer required since WordPress v4.5. Because WordPress has moved WP-API to core with inbuilt feature.
Let us know.
Regards,
Kiran -
AuthorPosts