Skip Navigation

[Resolved] distance search not showing all results

This support ticket is created 5 years, 6 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 8 replies, has 2 voices.

Last updated by Wim 5 years, 6 months ago.

Assisted by: Minesh.

Author
Posts
#1341863

Wim

I have set up a view custom search for posts with an adress field and a distance radius.
All posts have a postalcode field that has a value and is being used in the distance search.

There are 8 posts all with the same set up.
If i enter the view on a page and make a query without setting any values the view should display all posts right?
But somehow its only showing 5 posts instead of 8.

This is the views setup

[wpv-filter-start hide="false"]
[wpv-filter-controls]
[wpv-control-distance compare_field="postcode" distance_center_url_param="toolset_maps_distance_center" distance_radius_url_param="toolset_maps_distance_radius" distance_unit_url_param="toolset_maps_distance_unit" inputs_placeholder="Toon vacatures binnen %%DISTANCE%% van %%CENTER%%"]
<div class="form-group">
[wpv-filter-search-box placeholder="Zoek op vacature of trefwoord" output="bootstrap"]
</div>[wpv-filter-submit name="SESRCH!" type="button" output="bootstrap"][/wpv-filter-controls]
[wpv-filter-end]

Am I right in the understanding that no values in the search form should display all results?

#1341903
#1342069

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I checked with the access details you shared with me but i'm unable to login to wp-admin using the access details you shared with me.

Can you please send me working wp-admin access details.

I have set the next reply to private which means only you and I have access to it.

#1342095
#1342689

Wim

Hi Minesh, did you succeed in getting access?

#1342697
#1342699

Wim

Can you make the replies private is that possible with the links ? as i do not want them to go public.
The posts that need to be updated as per your request are the posts that are showing right now in the results. its just the other posts that are not showing.

So i do not understand what i need to adjust?

#1342773

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I found something unusual happening with your site.

I've created the following test post but when I update the post with postcode field it says its updated but when you refresh the page you will see that postcode field is empty.
=> hidden link

I created a Toolset test page where I've added the newly created view:
=> hidden link
=> hidden link

I can not see only two posts, one "toolset-test-post" and another one is "Java Developer Finance" for which if you edit this post and try to update the postcode field and update the post and refresh it again you will see the changes made to the postcode field is not get saved.

#1342793

Wim

Hi Minesh,

Thanks for all your effort but I think its solved by you pointing me out in the right direction. The posts are synced with an external application so thats why it wont update the postcode after saving. The postalcode address field is synced with another custom field from another application after save.

But hte application did not send in the correct format for some posts, so I am testing it further but I looks as everything is working now

Will update this issue if i am sure everything will work out right!

Thanks again.

By the way can you please add you reply private again as the domain is easy replaced 😉

Kind regards,

WIm

#1342805

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Great - I already hide your domain with all links. Please feel free to mark resolve this ticket when you can. 🙂

#1342901

Wim

Hi Minesh,

I am back again. Unfortunately it still not working as expected. The testset has been expanded.
As you can see there are 10 posts.
Post with post id:57 and id:16 are not visible in the distance radius results page as mentioned.
And I really cannot figure out why not. The idea I had looks like its has not solved everything. But from the 10 posts 8 are visible as expected.
Even if you enter a searchquery in the text field post 57 and 16 are not showing in the search results.

#1343685

Wim

Hi Minesh,

I do not think its due to toolset map distance filter that I am not seeing all the posts. It looks like it has something to do with the data being imported from the third party application. I will close this issue for now and going to investigate it further.

Thanks for your help!

Kind regards,

Wim