pawon
Forum Replies Created
-
AuthorPosts
-
This reply has been marked as private.
I had a list of 60 business without address information. I just set everything to empty for address fields and zero for the lat/long in the import CSV.
Imported just fine. But you will need to go through them one by one to set the address and/or lat/long.
Can you post the link to the download in this topic?
Thanks
Great! I’m really looking forward to this one!
Thanks
Pawon
Hi Paolo
Thanks for your relply.
I use the following code:
$ip = $_SERVER['REMOTE_ADDR']; $addr_details = unserialize(file_get_contents('http://www.geoplugin.net/php.gp?ip='.$ip)); $mylat = stripslashes(ucfirst($addr_details[geoplugin_latitude])); $mylon = stripslashes(ucfirst($addr_details[geoplugin_longitude]));
Taken from listing_filters.php around line 70.
It’s working fine most of the time. Just at times I keep getting a 403 error (while it still when I visit the url in my browser)
thanks
CarstenHi,
With the location switcher in place, it all makes sense now 🙂
One small issue: the switcher works find in the top menu, but doesn’t work properly when added as a shortcode to the sidebar. Upon selection of a country/region, the page doesn’t reload itself.
thanks
CarstenThank you for taking a look.
Ok, I understand now. I will add the switcher, play around a bit and report back.
Thanks
Carsten..sorry for me spamming this forum..
To add to the confusion… here’s what I just noticed on a new listing.
The breadcrumbs also seem to think I’m still on a page I visited before I visited this listing..
forgot screenshot..
OK. Another test. I deactivated the custom post types plugin.. and re-activated it again.
Now the /businesses/ url started working again, but doesn’t show world-wide data, it shows the country which you last visited!
So if I visit /businesses/united-states/ first and after that /businesses/ , it shows united states businesses (also the breadcrumbs shows you’re on the usa sub-page).
If you visit /businesses/netherlands/ first, and go to /businesses/ afterwards, it shows all businesses from netherlands only
If I disable all cookies or open /businesses/ directly in a fresh browser I never use, I get the correct /businesses/ page, with the ‘this site is requesting your location’ popup.
But if I go to a country (in the fresh new browser) and back to the /businesses/ page, I get the same problem.
Since the deactivate/reactivation, it now seems to be a cookie problem.
please see screenshots
thanks,
CarstenSome extra info…
I created a new post-type ‘gd_abc’ and create a test listing.
Same story…
working:
/abc/united-states/pennsylvania/philadelphia/test-abc/
/abc/united-states/pennsylvania/philadelphia/
/abc/united-states/pennsylvania/
/abc/united-states/Not working:
/abc/thanks
CarstenThis reply has been marked as private.And to add to this…
These are all working:
/businesses/united-states/michigan/troy/
/businesses/united-states/michigan/
/businesses/united-states/And without a location, but just a category, it is working as well:
/businesses/air-compressors/ is working
BUT
/businesses/
Is not working.
It should show listings for all categories and all locations
Thanks
Carsten
Hi
I also don’t want that, I just want the 404 to be gone 🙂
Just for info I give you the screenshots:
See screenshot geo1: ‘listing url prefix’ is ‘businesses’
See screenshot geo2: ‘listing slug’ for gd_place is also set as ‘businesses’but /businesses/ is not working.
I can not name them differently. If I change one, the other one changes too automatically, and vice-versa.
If I change it to ‘abc’, they both change. And /abc/ is not working..
What are the standard settings for this, like on your demo, there it works perfectly for both /hotels/ and /attrachtions/ for example
Thanks
Carsten
But if I change the prefix to ‘ABC’ on the permalinks screen, it changes automatically as well in the custom post type settings screen.. which makes kind of sense i think (I only use the standard gd_place post type)
Its the equivalent to
http://wpgeo.directory/attractions/
http://wpgeo.directory/hotels/Carsten
-
AuthorPosts