Skip Navigation

[Resolved] Showing results for “[wpv-search-term]” not working

This thread is resolved. Here is a description of the problem and solution.

Problem:

The issue here is that the user isn't getting the [wpv-search-term] shortcode to work.

Solution:
The issue here is that the [wpv-search-term] shortcode needs the parameter to get the value for.

So it should be [wpv-search-term param='some-param'] where some-param is the url parameter that holds the value of the term you want.

Example if you have this in your URL wpv-language=arabic then you should have [wpv-search-term param='wpv-language']

This support ticket is created 5 years, 4 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)

Tagged: 

This topic contains 4 replies, has 2 voices.

Last updated by catrionaD 5 years, 4 months ago.

Assisted by: Shane.

Author
Posts
#1283413

I am trying to:

1. Include a note of what text has been searched above the results. I have included this code in the Loop Editor above [wpv-layout-start] but it is not working:
- Showing results for "[wpv-search-term]"

2. Add a note of filters selected next to this, which can then be removed by clicking "x" next to them. No idea how to do this one.

Link to a page where the issue can be seen: hidden link

I expected to see: Showing results for "diabetes" (as an example)

Instead, I got: Showing results for ""

#1283429

Shane
Supporter

Languages: English (English )

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

Hi Catriona,

Thank you for contacting our support forum.

The issue here is that the [wpv-search-term] shortcode needs the parameter to get the value for. So it should be [wpv-search-term param='some-param'] where some-param is the url parameter that holds the value of the term you want.

Thanks,
Shane

#1283433

Thanks Shane, how do I find the url parameter?

And is there any guidance for #2?

Thanks

#1283489

Shane
Supporter

Languages: English (English )

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

Hi Catriona,

It is actually in the URL of the search.

Example if you have this in your URL wpv-language=arabic then you should have [wpv-search-term param='wpv-language']

For the x beside the filter would require you to create some custom code, unless you are using the reset button which would remove all the filter values.

Thanks,
Shane

#1283913

My issue is resolved now. Thank you!