Skip Navigation

[Resolved] i have a taxonomy value i want to have as a default when page first loads

This support ticket is created 6 years, 11 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.

Our next available supporter will start replying to tickets in about 1.09 hours from now. Thank you for your understanding.

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/Hong_Kong (GMT+08:00)

This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 6 years, 11 months ago.

Assisted by: Luo Yang.

Author
Posts
#539892

I am trying to: use one of the values of a taxonomy to be selected as default when first coming to the page

I visited this URL: hidden link

I expected to see: under "Disease/Research Area" the "Cardiovascular Disease" as the selected one, with only entries that match "Cardiovascular Disease"

Instead, I got: " - All -"

I was reading this post - https://toolset.com/forums/topic/how-to-make-a-taxonomy-term-selected-by-default-in-filter-control-while-loading/ and it says there is no option, has there been updates where it now has an option?

#539974

Dear james,

There isn't such an option yet, in the latest version of Views plugin, we use shortcode [wpv-control-post-taxonomy] to display the taxonomy filter in the custom search form:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-control-post-taxonomy

There isn't such an option that can:
use one of the values of a taxonomy to be selected as default when first coming to the page

However, there is a workaround by using some custom codes, for example this thread:
https://toolset.com/forums/topic/set-default-value-in-a-select-box-search/#post-452500

This ticket is now closed. If you're a Toolset client and need related help, please open a new support ticket.