Skip Navigation

[Resolved] display vustom field/taxonomy in a view only if it was filtered

This support ticket is created 6 years, 1 month 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 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Karachi (GMT+05:00)

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by Ido Angel 6 years, 1 month ago.

Assisted by: Waqar.

Author
Posts
#1144523

hey,

i have several filteres of taxonomies and custom fields, such as "written by", "knows as", "year of birth" etc.
the results view displays the post's title and i want it to show also only taxonomies/custom fields which were filtered (e.g in the url parameter), but i can't find the right conditional for it.
any help?

thanks!
ido

#1144806

Hi Ido,

Thank you for contacting us and I'll be happy to assist.

To conditionally show/hide content based on the available URL parameter(s), you can use the "wpv-search-term" shortcode ( ref: https://toolset.com/documentation/user-guides/views-shortcodes/#vf-214940 ).

For example:


[wpv-conditional if="( '[wpv-search-term param="url-parameter"]' ne '' )"]
  // content that needs to be conditionally shown
[/wpv-conditional]

Note: you'll replace the "url-parameter" with the actual URL parameter that you'd like to check for.

I hope this helps.

regards,
Waqar

#1144831

you da man!
thanks Waqar!