Support » Plugin: WP Store Locator » Publishing Failed

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Tijmen Smit

    (@tijmensmit)

    Publishing a location fails when there’s an issue with the API keys, or the address isn’t recognized by the Google Geocode API.

    You did create both API keys? If you click on the button next to ‘validate api key’ on the WPSL settings page, then no errors show up?

    Hello,

    Both API keys work no problem and the address populates in the Google API no problem.

    Best,
    Andrew

    Plugin Author Tijmen Smit

    (@tijmensmit)

    Can you add this code to the functions.php inside your active theme folder and then try to publish the page again. What’s the error that shows up?

    
    add_filter( 'wpsl_post_type_args', 'custom_post_type_args' );
    
    function custom_post_type_args( $args ) {
        
        $args['show_in_rest'] = false;
        
        return $args;
    }
    

    This fixed it! Can you let me know what this did for future reference?

    Thanks,
    Andrew

    Plugin Author Tijmen Smit

    (@tijmensmit)

    If this code fixed it, then there was problem an issue with the Gutenberg editor ( or something related to it ).

    When you remove the code and check the browser console ( F12 ), then you will likely see a few JS errors.

    authenticthought

    (@authenticthought)

    This solution worked for me !

    Awesome plug in by the way kudos the developer, great job !!

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.