Stiofan O'Connor
Forum Replies Created
-
AuthorPosts
-
You can simply manipulate the $_REQUEST data before it’s proccesed
add_action('geodir_detail_before_main_content', '_my_geodir_action_geodir_set_preview_post', 7); function _my_geodir_action_geodir_set_preview_post(){ global $post, $preview, $gd_session; $is_backend_preview = (is_single() && !empty($_REQUEST['post_type']) && !empty($_REQUEST['preview']) && !empty($_REQUEST['p'])) && is_super_admin() ? true : false; // skip if preview from backend if (!$preview || $is_backend_preview) { return; }// bail if not previewing //lets check what info we have print_r($_REQUEST); }Stiofan
You would either set as “NONE” for testing or HTTP referrer.
Stiofan
You have not authorised the Google maps api key to use that site url, please follow setp #4 here: https://wpgeodirectory.com/docs/add-google-api-key/
Then once maps are working, set the defualt location: http://ruralworld.org/newsite/wp-admin/admin.php?page=geodirectory&tab=default_location_settings
Then you can enable multilocations addon and you can install dummy data.
Thanks,
Stiofan
Thank you! 🙂
November 22, 2016 at 12:23 pm in reply to: Neighborhood pages directing to Blog instead of Home #308203I don’t see any problem here, if you set GD to be the homepage under GD>Permalinks>homepage, then that will take over the template and will be a widget area page, you can add things to the start of the page now but not edit the whole page via a visual editor type plugin. If you want to use a VC type plugin make sure NOT to set GD homepage as the same page as the frontpage, and you will just have a normal blank page to edit how you want.
I hope that makes sense, just let me know if you have any questions.
Stiofan
Hi Rachel,
It is done via AJAX so i guess there is some sort of JS error on the page, if you post wp-admin details in a private reply (only staff can see) then i will take a look.
Thanks,
Stiofan
Please check now, the redirect on main wp-admin seemed to be caused by the query monotor plugin, i have removed it.
The not saving meta info was caused by a tag having a ‘ in it, i added code to escape that and it seems to work now.
Thanks,
Stiofan
Hi Scott, do you mean the details page schema? If so you can filter it with the “geodir_details_schema” filter, if you need and example just ask.
https://wpgeodirectory.com/codex/codex/geodirectory_filters/geodir_details_schema/
Stiofan
Hi crystal,
If you explain what you are trying to achieve i will tell you the best way to do it.
Thanks,
Stiofan
I can’t seem to replicate any of this, can you give me detailed instructions on how to replicate.
Thanks,
Stiofan
I would suggest adding the Near me button widget or shortcode to the site so users can choose to go to the nearest.
Stiofan
It should be this week, if you provide FTP info in a private reply i will update it for you early.
Thanks,
Stiofan
When GD Booster is active it seem to try to load Google maps but you have it set yo use OSM, i will assign this to Kiran for now and if he has not solved it by the time i come back online tomorrow then i will check it again.
If you can provide FTP info that will help us with debugging.
Thanks,
Stiofan
This has been fixed and will be in the next release.
Thanks,
Stiofan
Visiting the root of the site will always reset the location, the auto redirect only works on the first visit, then it is stored as a session, you would need to close the browser and then reopen to get it again.
Stiofan
-
AuthorPosts