Kiran

Forum Replies Created

Viewing 15 posts - 5,131 through 5,145 (of 6,022 total)
  • Author
    Posts
  • in reply to: Edit listing front end function doesn't work #382239

    Kiran
    Moderator
    Post count: 7069

    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,
    Kiran

    in reply to: Admin Site Using Translations When Shouldn't #382073

    Kiran
    Moderator
    Post count: 7069

    Hi 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

    in reply to: Translating Country Slug #382071

    Kiran
    Moderator
    Post count: 7069

    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


    Kiran
    Moderator
    Post count: 7069

    Let us provide FTP details, so we have to check from our side.

    Kiran

    in reply to: JSON API to search near by venues ? #382051

    Kiran
    Moderator
    Post count: 7069

    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,
    Kiran

    in reply to: review totals per author #382050

    Kiran
    Moderator
    Post count: 7069

    Hi,

    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,
    Kiran

    in reply to: Posting review REST API #382043

    Kiran
    Moderator
    Post count: 7069

    Hi 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 different

    Thanks,
    Kiran

    in reply to: API Reviews Endpoint Issue #382038

    Kiran
    Moderator
    Post count: 7069

    Hi 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,
    Kiran

    in reply to: Stripe Test Mode Won't Shut Off #382036

    Kiran
    Moderator
    Post count: 7069

    Hi Keane,

    Please check and let us know.

    Thanks,
    Kiran

    in reply to: Yoast Sitemap – won't load location sitemaps #381917

    Kiran
    Moderator
    Post count: 7069

    Hi Silks,

    Please check now sitemaps for locations, location + categories & location + tags loading fine.

    Let us know.

    Thanks,
    Kiran


    Kiran
    Moderator
    Post count: 7069

    Please follow this for the solution https://wpgeodirectory.com/support/topic/bug-in-listing-preview-page/#post-211014

    Let us know.

    Kiran

    in reply to: Edit Listing version 1.6.20 #381873

    Kiran
    Moderator
    Post count: 7069

    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-castle

    Now 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,
    Kiran

    in reply to: Stripe Test Mode Won't Shut Off #381871

    Kiran
    Moderator
    Post count: 7069

    Hi 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/invoicing

    Better you provide FTP details. We will manage this for you.

    Let us know.

    Thanks,
    Kiran

    in reply to: JSON API to search near by venues ? #381859

    Kiran
    Moderator
    Post count: 7069

    Hi 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,
    Kiran

    in reply to: wrong url in stiemap by Yoast seo #381858

    Kiran
    Moderator
    Post count: 7069

    Hi 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

Viewing 15 posts - 5,131 through 5,145 (of 6,022 total)
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount