Gary Kovar
Forum Replies Created
-
Forum: Plugins
In reply to: [WP_Places] Ability to turn off Google API fieldsMy apologies. This plugin had not been updated in quite a while as I’ve been busy with quite a few other things. In that time, google dramatically increased their rates.
For now a bandaid fix is available in version 2.1.2 until I can find time to dig in further.In your functions.php in your theme add:
add_filter( ‘wp_places_transient’, ‘wp_places_update_transient’, 10, 1 ); wp_places_update_transient( $time ) { // return a value in seconds for how long to cache. return 86400; // one day return 604800 // one week }
Return however long you’d like the transient to exist. This is not full proof, but better than checking every minute if a place is open.
Forum: Plugins
In reply to: [WP_Places] Google Charges through the roof!My apologies. This plugin had not been updated in quite a while as I’ve been busy with quite a few other things. In that time, google dramatically increased their rates.
For now a bandaid fix is available in version 2.1.2 until I can find time to dig in further.In your functions.php in your theme add:
add_filter( ‘wp_places_transient’, ‘wp_places_update_transient’, 10, 1 ); wp_places_update_transient( $time ) { // return a value in seconds for how long to cache. return 86400; // one day return 604800 // one week }
Return however long you’d like the transient to exist. This is not full proof, but better than checking every minute if a place is open.
Forum: Plugins
In reply to: [WP_Places] Opening hours translationThis is a good idea and something I will look into.
Thanks,
GaryForum: Plugins
In reply to: [WP_Places] 24h openingThis is something that I have heard a few times.
I will work on it.Thanks,
GaryForum: Plugins
In reply to: [WP_Places] Multiple places, same post?At the moment, no….
There’s an experimental feature that lets you pass a search term but that stores as the location for the post.
I’ll look into how to make that happen.Thanks,
GaryForum: Plugins
In reply to: [WP_Places] Fatal error: Call to a member function selected_post_types()I just pushed a change for version 2.1.1
Please let me know if this fixes it for you.I couldn’t replicate the issue locally.
Thanks
GaryForum: Plugins
In reply to: [WP_Places] Fatal error: Call to a member function selected_post_types()Sorry folks,
I’ll look into this as soon as I can.Jason,
Wanted to let you know I release version 2.1.0 today.
It uses google autocomplete to find a location so it should fix the issue related to finding a location.https://www.ads-software.com/plugins/wp-places/
Thanksm
GaryForum: Plugins
In reply to: [WP_Places] Page Update breaks wp_placesJason,
This should be fixed in 2.0.6
Thanks!
GaryForum: Plugins
In reply to: [WP_Places] Page Update breaks wp_placesJason,
Thanks for the details. Weird, but I think I know where that logic is coming from.
Will work on a fix shortly.Thanks,
GaryForum: Plugins
In reply to: [WP_Places] Support all post-typesHmm…the latest version should support all post-types?
In the settings screen you should have the option to turn on and off displaying it on types other than posts and pages.Forum: Plugins
In reply to: [WP_Places] Place_IDHey Benedikt,
Yes…the search is indeed counted at 10x.
The search will only happen the first time you save the post. At that point the place ID is attached as post_meta to the post. Future google places API calls will be with the place id.I don’t *think* there would be any issue with you setting the value for meta key _wp_places to the place ID directly.
Hope that helps,
Gary- This reply was modified 7 years, 11 months ago by Gary Kovar.
Forum: Plugins
In reply to: [WP_Places] error message/integrating with custom post typesCPT is now available.
Feel free to open a new ticket if you are still having issues with finding locations.Forum: Plugins
In reply to: [WP_Places] shortcodes not replaced in ListingsLooks like it’s still not handling that shortcode in the widget.
Also, the 2 shortcodes at the top. Wherever you put the code for those…it should be as simple as wrapping in the the do_shortcode function.
Forum: Plugins
In reply to: [WP_Places] shortcodes not replaced in ListingsThanks for checking out the plugin.
Specifically on the 2nd point. It looks like the phone number and website under the title might be part of the theme?
If so, you’ll need to do something like do_shortcode(‘[wp_places phoneNumber]’);And on the side where hours isn’t displaying, I think that might be a widget. I have no idea if the post meta will pass through to that…if it will you’ll need to turn on shortcodes in widgets by adding this to your functions.php.
add_filter(‘widget_text’,’do_shortcode’);I’ll keep this thread open and dig into your first question later on.