I have an archive page with two views. One that is designed to present a showcase dog, and the other which acts as the archive view of the page.
I'm trying to load the content of the first view dynamically by loading the taxonomy term(s) that appears in the second view. The client wanted a user to search for a dog breed, and whatever results show up, the showcase view will show the showcase dog that is relative to that search. For instance, if someone searches "Portuguese Water Dog", the post associated with the taxonomy term "Portuguese Water Dog" that has the types custom field "Showcase Dog" checked, should show up.
If there are multiple dog breeds being represented in the custom search archive view, I was expecting the shortcode to print multiple values (ie. irish-setter, mastiff, portuguese-water-dog), therefore invalidating any appropriates values for the wpvbreed attribute, forcing in the "no values found" section of the view.
This is what my shortcode is looking like:
[wpv-view name="ultimate-showcase-dog" wpvbreed="[wpv-post-taxonomy type='breed' format='slug']"]
However, it's only printing a single taxonomy term that is not relative to the search results. It seems to be stuck on "portuguese-water-dog". If I search "Mastiff", as seen in the screenshot, the Portuguese Water Dog still shows up. As there are no Mastiffs that have the "Showcase Dog" field checked, no results should be displayed.
Even if I remove the showcase view, it still prints "portuguese-water-dog", regardless of the results presented in the custom search archive view.
I've found an alternative method to display the results of the view based on search terms such as this:
[wpv-view name="ultimate-showcase-dog" wpvbreed="[wpv-search-term param='wpv_post_search']"]
But this forces the expectation that the user will spell the dog breed correctly, AND type the full breed name out. Easy enough for "Mastiff" or "Irish Setter", but not so much for other dog breeds such as "Xoloitzcuintli".
As this is a production site, I have the shortcode configured in this manner, to at least present a semblance of functionality.
I expect that I'm doing something wrong, or perhaps utilizing the wpv-post-taxonomy shortcode in a way that it wasn't meant to be used, so I wondering if I could get some help with this. I do hope that my explanation is clear enough.
You can view the archive page in question here: hidden link
I'd like to provide you guys access to the site, to better assist me, but the "I need help" selection doesn't immediately provide those fields for me.