Hi Paolo,
I gave it a test again – I really think that it could work. Sometimes it does. It looks like that the location filter at the widget doesnt work every time…
Regarding this, how does the filter work? Based on ZIP or Region or distance?
This is also not easy to check…
My test is actually as follows:
DETAIL PAGE: hotel details are shown – sidebar widget shows CORRECT matching sports (OTHER post type) and shows correct hotels (same POST TYPE). Both shown post types have the same ZIP.
This could be a way to solve it, some minor changes would it make really better:
1. Dont show the OWN listed hotel or post type again, the detailed place should be excluded in the widget. Only show the others.
2. If there is no matching listing in this area, just show nothing. Much better than the error code nothing matching…
Interesting things when you search:
You search a location – same as for the sample above. Search works perfect, the correct hotels are shown. Distance of hotels are 0.19 and 3.12 kilometers.
If you add the same widget as at the sample above, sports (other post type) are shown without location filter (it is set to work!). Here you see 352, 158, 3.5, 281 kilometers and so on.
So the question is why does the same widget work at detail listing and at search listing not?
Solving this, it would work good.
If on top I would be able to set the params of location filter (best would be distance) then it should work as needed.
Greetings, Chris