Forums › Forums › Search & Filter Pro › Restrict taxonomy terms to those relevant to selected CPT(s)
Tagged: CPTs, Taxonomies
- This topic has 7 replies, 2 voices, and was last updated 6 years, 2 months ago by Trevor.
-
Anonymous(Private) August 24, 2018 at 10:12 am #186359
Hi there,
Using the hide empty option to good effect, however keen to see if can go a level beyond and restrict the term options displayed (when giving a taxonomy filter) to only those relevant to the selected CPT(s).
Example would be we have a very long list of companies that are relevant site-wide, but we’re offering a custom search & filter on a specific CPT – so would only want users to be able to select those associated with said CPT.
Hide empty ‘plus’ as it were… so that terms not connected to the CPT in question are also skipped out.
Is that possible?
Thank you!
Anonymous(Private) August 24, 2018 at 5:13 pm #186460Site is currently PW protected – can provide if needs be?
The basic layout is using the shortcode method…
Search fields… settings restricts to a single CPT
1. Text search
2. Companies (Taxonomy)
3. Region (Taxonomy)
4. Countries (Taxonomy)
4. Cities (Taxonomy)My question actually becomes relevant for all 2-4 as this CPT WILL have content relating to countries, but setting the main taxonomy term group as the selection means I pull in all countries – whereas I’d only want to show the list that’s relevant to the CPT – ’empty’ option only gets me so far as some countries not relevant to this CPT will be assigned to others… hope that makes sense?!
-
AuthorPosts