Skip Navigation

[Resolved] Showing Search Terms on Results Page and Search Results Pre-Populated

This support ticket is created 2 years, 7 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
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 3 replies, has 2 voices.

Last updated by Timothy 2 years, 7 months ago.

Assisted by: Shane.

Author
Posts
#2353485

When a user searches from the homepage I'd like their search terms to be displayed above the results on the search results page. I tried using [wpv-search-term] with the url paramters but it's not working:

hidden link

These are the url parameters:
wpv-wpcf-number-of-bedrooms
wpv-wpcf-town
wpcf-number-of-guests

Also, I have custom fields for a properties' "amenities" and on my homepage I want to link to the search results page with that amenity selected. For example - "Internet", "Fireplace", "Pet Friendly". Or is it possible to auto-generate pages for these amenities with the results displayed?

Thanks,

tim

#2353637

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Tim,

Thank you for getting in touch.

Given that you're using the [wpv-search-term] then the values should show up.

Would you mind allowing me to have admin access to the site so that I can have a deeper look at this one for you ?

Thanks,
Shane

#2353763

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Timothy,

The problem was that you were using the shortcode with the incorrect parameter name.

You were using "url_paramter" for the shortcode attribute to provide the URL parameter name but it should've been "param".

I've went ahead and made this change and your shortcode should now be producing a result.

Thanks,
Shane

#2354017

My issue is resolved now. Thank you!