Skip Navigation

[Resolved] Creating a search bar / results page – by distance and category

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

Last updated by Minesh 3 years, 3 months ago.

Assisted by: Minesh.

Author
Posts
#2492821

hidden link

On the homepage is a search Bar

I would like to be able to search by distance - showing reults on a search results page - nearest first.

And then filter that page by category

can you help if I give you WP access?

#2492867

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Yes - sure. Have you created any result page where you want to display the search after performing search from home page search bar?

*** 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 have set the next reply to private which means only you and I have access to it.

#2493781

Minesh
Supporter

Languages: English (English )

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

I've created the following search result page and added the view to post body:
- hidden link

And then I've adjusted the view shortcode as given under with your home page PHP template:

<?php echo do_shortcode('[wpv-form-view name="first-view2" target_id="12127"]');?>

Is this what you were looking for.

#2496727

Hi

It looks good - but doesn't seem to actually work...

Please enter - Hitchin

As an example location - and even if you update the distance to 500 miles it isn't showing any results - but there are definately locations within that area?

hidden link

#2497497

Minesh
Supporter

Languages: English (English )

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

Can you please check now. It seems there is some CSS conflict.

I've added the following line of CSS code to your view's CSS box:
=> hidden link

.js-wpv-loop { display:block !important; }

I can see the results on result page now.
- hidden link