Skip Navigation

[Resolved] Display selected search filters as a string in breadcrumbs

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

Problem:
Display selected search filters as a string in breadcrumbs

Solution:
You can use the view's shortcode [wpv-search-term] in order to display the value of URL param of selected view's filter:

For example:

[wpv-search-term param='wpv-known-as']

You can find the proposed solution, in this case with the following reply:
https://toolset.com/forums/topic/display-selected-search-filters-as-a-string-in-breadcrumbs/#post-1157737

Relevant Documentation:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-search-term

This support ticket is created 5 years, 12 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 Ido Angel 5 years, 11 months ago.

Assisted by: Minesh.

Author
Posts
#1156861

Strangest thing:
I am trying to show a string of the search terms at the top of the results in a view. Something like: you searched for a writer who won the government award" ("writer" and " the government award" are terms in taxonomies "known as" and "awards", respectfully).
I thought this would be easy:
I createded a view within a view. The parent view is the sarch view, and the child view is the breadcrumbs view. The breadcrumbs view shows "knows as" and "awards" to, each filtered by the URL parameter (wpv-known-as and wpv-awards). But even though I have just one term selected and visible in the search results URL (writer), I get ALL results of "known as" taxonomies from the filtered entries. Mmeaning, if an entry is both writer and poet, even if the URL shows I searched only for writer.
What am I doing wrong?

#1157571

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

First of all - After checking to debug information you shared with us, I found that you are using outdated Toolset plugins. We always recommend running your site with latest stable release plugin version.

*** Please make a FULL BACKUP of your database and website.***
Could you please update ALL Toolset plugins to it's latest official released version. You can download the latest plugin release from your accounts page:
=> https://toolset.com/account/downloads/

Once you update the Toolset plugin, Could you please share problem URL and access details with test case example where exactly you want to display what.

I have set the next reply to private which means only you and I have access to it.

#1157587

Minesh
Supporter

Languages: English (English )

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

Well - I'm checking the link you shared: hidden link

But I do not see any filter or where exactly you want to display the links? Could you please share your exact requirement with a test case example that will help me to understand your issue as well as to guide you to the right direction.

I have set the next reply to private which means only you and I have access to it.

#1157737

Minesh
Supporter

Languages: English (English )

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

Well - I dont think it needs a view to display the selected taxonomy terms.

I have changed the code as given under:

[wpv-conditional if="( '[wpv-search-term param='wpv-known-as']' ne '' )"]
 you searched for a [wpv-search-term param='wpv-known-as']  who won the government award   [wpv-search-term param='wpv-awards']. 
[/wpv-conditional]

- You can adjust the avove code as needed.

#1157786

My issue is resolved now. Thank you Minesh!