Skip Navigation

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

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

Tagged: 

This topic contains 3 replies, has 2 voices.

Last updated by Shane 5 years, 7 months ago.

Assisted by: Shane.

Author
Posts
#1291821

I am trying to:
Create a label which displays the search term above the results.
I followed the guidance here but it doesn't seem to be working - https://toolset.com/forums/topic/showing-results-for-wpv-search-term-not-working/
I am using code:
<h3>Showing results for "[wpv-search-term param='wpv_post_search']"</h3>

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

I expected to see: "Showing results for "abuse""

Instead, I got: "Showing results for """

#1291953

Shane
Supporter

Languages: English (English )

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

Hi Catriona,

I took a look at this for you and i'm seeing the abuse show up in the Showing results for

Were you able to resolve the issue ?

Thanks,
Shane

#1292005

Hi Shane,

Odd, I swear it plays up now and again! It works for the first search, but then for subsequent searches it still shows the first search term.

For example, if I search "abuse", it will show "showing results for "abuse".
If I then delete this and search for "diabetes", it still shows "showing results for "abuse".

Is there a way I can update this if the search term is updated?

Thanks,
Cat

#1292015

Shane
Supporter

Languages: English (English )

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

Hi Catriona,

The issue was that you should add the code below this [wpv-layout-start]

Thanks,
Shane