Skip Navigation

[Resolved] Weird results in custom search

This support ticket is created 7 years 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 3 replies, has 2 voices.

Last updated by toolset-dave 6 years, 12 months ago.

Assisted by: Minesh.

Author
Posts
#589360

Hi, I have created custom search and it gives me results which I didn´t expect and don´t know how to solve it. I have created two CPTs to display and I tried to set them differently and also the same, but it doesn´t have any impact on results. Can you inspect it on my site? Thank you.

<div class="form-group">
	<label>[wpml-string context="wpv-views"]Kraje[/wpml-string]</label>
	[wpv-control-postmeta field="wpcf-kraje" type="select" default_label="Celá ČR" url_param="wpv-wpcf-kraje"]
</div>
<div class="form-group">
	<label>[wpml-string context="wpv-views"]Co hledáte?[/wpml-string]</label>
	[wpv-filter-search-box output="bootstrap"]
</div>
#589368

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Well - could you please tell me what is your expected output and what post type you want to apply filter on?

It will be great if you can share test case example with problem URL.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I would additionally need your permission to de- and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important. If you agree to this, please use the form fields I have enabled below to provide temporary access details (wp-admin and FTP).

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

#589943

Minesh
Supporter

Languages: English (English )

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

As I understand - when you click on the button "NAJÍT ZÁŽITEK" - it should show two posts - correct? If yes - now it will show you two posts. Could you please confirm that you can see now two posts.

I've changed the view's Query Options setting to display the two posts.

#591527

I found out that the problem was caused by checked "Don't include current page in query result" and the field "kraje" was set at "When unchecked, save 0 to the database".