Navigation überspringen

[Gelöst] Creating a search bar / results page – by distance and category

This support ticket is created vor 3 years, 7 months. 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 -

Zeitzone des Unterstützers: Asia/Kolkata (GMT+05:30)

Dieses Thema enthält 4 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von Minesh vor 3 years, 7 months.

Assistiert von: Minesh.

Author
Artikel
#2492821

versteckter 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
Unterstützer

Sprachen: Englisch (English )

Zeitzone: 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
Unterstützer

Sprachen: Englisch (English )

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

I've created the following search result page and added the view to post body:
- versteckter 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?

versteckter Link

#2497497

Minesh
Unterstützer

Sprachen: Englisch (English )

Zeitzone: 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:
=> versteckter Link

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

I can see the results on result page now.
- versteckter Link