Kiran
Forum Replies Created
-
AuthorPosts
-
Hi Gerald,
There is a plugin “Shortcoder” which causing conflicts here. When enabled debug there was PHP error in log: “PHP Fatal error: Call to undefined function get_current_screen() in …/wp-content/plugins/shortcoder/admin/sc-admin.php on line 357”
The function get_current_screen() should be used only in admin area. But Shortcoder uses it in front end as well via hooks mce_buttons & mce_external_plugins.
So either you have to contact plugin author or use following temp solution.
Copy following code snippet in your theme functions.php for temporary fix.// Fix: PHP Fatal error: Call to undefined function get_current_screen() function gd_custom_init() { if ( class_exists( 'Shortcoder_Admin' ) && !is_admin() ) { remove_filter( 'mce_buttons', array( 'Shortcoder_Admin', 'register_mce_button' ) ); remove_filter( 'mce_external_plugins', array( 'Shortcoder_Admin', 'register_mce_js' ) ); } } add_action( 'init', 'gd_custom_init' );
Thanks,
KiranHi There,
I have done same in my test site and i can’t replicate the problem there. I have used same settings with default language & admin language.
Can you provide me .po file which contains translated string in Japanese language? I have to check importing the file that you have imported.
Kiran
Sorry i missed this one.
The steps listed in my previous reply will fix it. Please try to search text “schools” and then “スクール” in WPML > String Translation and complete translation if any one found translation not completed.If still it not fix the problem, the we need admin credentials to look there.
Kiran
June 7, 2017 at 8:38 am in reply to: Conversion seemed to work but front page shows no listings #382052Let us provide FTP details, so we have to check from our side.
Kiran
Hi,
To search for nearby venues using latitude, longitude and venue category. Use following endpoint.
http://sitename.com/wp-json/geodir/v1/places/?latitude=31.943&longitude=124.535&gd_placecategory=6
Where 6 is category id.Use &sort_by=nearest to filter results by nearest.
Use &sdist=40 to filter results within certain range.We are improving GeoDirectory API to make it more efficient & user friendly 🙂
Thanks,
KiranHi,
This is a default behavior by WP. Subscribers does not have permission to use “author” parameter in list comments & list reviews endpoints. Subscribers should have minimum permission level like author has.
Now we have allowed to filter reviews if author parameter is matching to logged user id. In short subscriber can only see their own reviews by using or parameter.
It will be available in next release, but till that you can download development version from here https://github.com/kprajapatii/geodir_api/.
Thanks,
KiranHi D.D
Use following code snippet to get notification on comment via API.
// Notify author on comment via API function gd_custom_new_comment_notify_postauthor( $comment, $request, $new = false ) { if ( $new && !empty( $comment->comment_ID ) ) { wp_new_comment_notify_postauthor( $comment->comment_ID ); } } add_action( 'rest_insert_comment', 'gd_custom_new_comment_notify_postauthor', 10, 3 );
But make sure you only get notification if:
– Option enabled from Admin > Settings > Discussion
– Comment author and listing author must be differentThanks,
KiranHi D.D,
BTW you can differentiate reviews & responses with the use of “overall_rating” field. For reviews overall_rating has any integer value (rating stars) & for response it has null value.
Let us provide the endpoint url that shows reviews & responses both.
Thanks,
KiranHi Keane,
Please check and let us know.
Thanks,
KiranHi Silks,
Please check now sitemaps for locations, location + categories & location + tags loading fine.
Let us know.
Thanks,
KiranJune 6, 2017 at 9:33 am in reply to: Conversion seemed to work but front page shows no listings #381875Please follow this for the solution https://wpgeodirectory.com/support/topic/bug-in-listing-preview-page/#post-211014
Let us know.
Kiran
Hi Neil,
Let me explain with example why we have added this. Suppose there is a listing & category with same slug “windsor-castle”.
So now
Category url will be: http://mysite.com/country/region/city/windsor-castle
Detail page url will be: http://mysite.com/country/region/city/windsor-castleNow with this same url for category & detail page it is impossible for rewrite engine to find whether it is category or a listing detail page.
This is the problem why we have used validation to overcome same slugs for category/tag & listings.
Some of customers have reported this problem, that’s why we applied this fix. You can still modify category/tag/listing slugs from edit page respectively.
Thanks,
KiranHi Keane,
You have two directories wp-content/plugins/invoicing-master & wp-content/plugins/invoicing. This may confuse in identifying real plugin. See screenshot attached.
Please remove or move directory wp-content/plugins/invoicing-master some where out side plugins directory. There should have only one directory wp-content/plugins/invoicing.
Most recent plugin files should be under wp-content/plugins/invoicingBetter you provide FTP details. We will manage this for you.
Let us know.
Thanks,
KiranHi There,
We have added feature so now results can be filtered by latitude & longitude.
You can use following parameters:
latitude – Filter by latitude
longitude – Filter by longitude
sort_by – nearest or farthest. Optional.
sdist – Near me range. Optional. One of value from GD custom fields search settings. If not passed default value taken from setting.This will be available in next release of GD API plugin.
Download development version from here https://github.com/kprajapatii/geodir_api/ in case you want to test it now.Thanks,
KiranHi Salvador,
You are using older version of GD + GD plugins. We have some fix in recent addons that is related to Yoast sitemap path. So please update those plugins.
Try again after updating the GD + GD plugins. If you still facing problem after update then let us provide FTP details, so we can look into more.
Thanks,
Kiran -
AuthorPosts