Dave
Forum Replies Created
-
AuthorPosts
-
This reply has been marked as private.
I understand. The core plugin is currently up to date (20.0.0.67) but most of the addons are not latest versions and there’s no option to update.
Do you know why the option to click ‘update’ disappears when I go into my plugins list?
Thanks,
DaveOk, I think I’ve worked it out actually. Does WP Easy Updates just keep all the GD plugins up to date automatically?
Hi Alex,
Thank you. Over been meaning to ask actually…
I get notified from my server that there are updates available. When I first login to my WP admin, there’s a notification on my plugins to say there are updates available too but when I go to the plugins page to update them, the option to update them disappears. Would you know anything about what might be causing that?
Thanks
DaveHi Kiran, thanks very much for that. This is what we’ve written so far…
function gd_snippet_190913_set_current_location( $location ) { if ( ! empty( $location->type ) && geodir_is_page( "location" ) ) { setcookie("last_location",base64_encode(serialize($location))); } return $location; } add_filter( "geodir_set_current_location", "gd_snippet_190913_set_current_location", 10, 1 );
How would we get the value that we’ve written into the cookie, into the user session? For example:
add_action( 'init', 'process_post' ); function process_post() { if( isset($_COOKIE['last_location']) ) { $_SESSION[‘YOUR_KEY_HERE’] = unserialize(base64_decode($_COOKIE[‘last_location’])); } }
What is the session key that we need please?
Thanks,
DaveOk thank you.
Thanks Alex.
The reason I asked about cookies was because of this previous forum thread where one of your team advised to create a cookie…
https://wpgeodirectory.com/support/topic/remember-location/The other admin said it was a few lines of code, but writing javascript which automatically gets the localStorage then sends it to the server for a redirect is far more than that.
In your FAQ’s, you say that there are many hooks and filters and just to ask you for the right ones for what we’re trying to customise:
https://wpgeodirectory.com/docs-v2/faq/customizing/#hooks-filtersAre you able to provide the hooks please?
Thanks,
DaveHi Martin,
When you add a widget of GD Lisings, open the advance settings toggle (blue button with controls icon). There should be a check box that says “group recurring into single event”.
As you can see above, the snippet from Kiran will do this also for Archive / Category pages.
Best of luck!
DaveThanks Alex, that’s done the job.
Hi Alex,
I’ve tried manually adding it into the Archive Item template already using the shortcode builder. I’ve tried post_meta and post_badge but both just output the full listing item within that one, rather than just the title and icon.
Any other suggestions?
Thanks,
DaveThanks Kiran, that’s working great!
Dave
Hi Kiran,
Thanks for the reply but I was told back in July it would only be a few weeks away. It’s now September and you no longer have a timescale for it?
To me this is a feature that would be there anyway otherwise why would you link to a business in the first place? It’s essential for my business and I would really like to know when it’s going to be completed.
Thanks,
DaveThis reply has been marked as private.Ok thanks will do
This reply has been marked as private. -
AuthorPosts