I have CPT "package". It has a custom taxonomy "City". I have a view "Search" with a query filter enabled:
"Select posts with taxonomy:
Cities slug in all of those set by the URL parameter wpv-city
eg. hidden link
AND
Themes slug in one of those set by the URL parameter wpv-package-theme
eg. hidden link"
If on taxonomy archive "/city/jerusalem/" Search dropdown only shows "Jerusalem" as an option would like it to show the other taxonomy terms (i.e cities).
How can this be achieved?
Thanks!
Hello,
I assume we are talking about these:
1) in the archive page of taxoterm "jerusalem"(taxonomy "city"):
/city/jerusalem/
2) You are using Views WordPress Archive to customize above taxonomy archive page,
3) In above Views WordPress Archive you are using a filter on taxonomy "city".
If it is, it is expected result:
on taxonomy archive "/city/jerusalem/" Search dropdown only shows "Jerusalem" as an option
Since it is archive page of term "jerusalem", all posts should be assigned with term "jerusalem", it can not display other posts which are not assigned with term "jerusalem", so the "city" taxonomy field shows only one option "Jerusalem".
As a workaround, you can create a taxonomy view:
- Query terms of taxonomy city
- In views loop, display term's archive page link:
[wpv-taxonomy-link]
hidden link
The display above taxonomy view in your WordPress Archive view, user can click the term's archive page link, and be redirectted to correct archive page.
My issue is resolved now. Thank you!