Minesh
Supporter
Languages:
English (English )
Timezone:
Asia/Kolkata (GMT+05:30)
Ok great. You are welcome to mark resolve this ticket and feel free to open a new ticket with every new question you may have.
Hi Minesh, I tried using the taxonomy option by copying the "Careers 2.0 ByStates" view and changed it to taxonomy instead. Now I get "no items found under" each state.
hidden link
The new view is named "Careers 2.0 bystate-Lateral"
Minesh
Supporter
Languages:
English (English )
Timezone:
Asia/Kolkata (GMT+05:30)
Could you please check now: hidden link
I've changed the "Query Filter" as given under for the following view:
=> hidden link
Taxonomy filter:
Select posts with taxonomy:
State of Career Opportunites set by the parent Taxonomy View
I can see its working as expected. Can you please confirm.
Thanks Minesh. It's better! Is it possible to hide the empty results? That way, so that the attached portion (at the end of the list) is not visible ?
Minesh
Supporter
Languages:
English (English )
Timezone:
Asia/Kolkata (GMT+05:30)
Could you please check now: hidden link
Within the following view, we are passing the taxonomy term title with the view's shortcode attribute tax:
=> hidden link
[wpv-view name="careers-2-0-positions" tax="[wpv-taxonomy-title]"]
And in the child view that displays the career posts, we are catching the view's shortcode attribute "tax" value using the shortcode:
=> hidden link
[wpv-attribute name='tax']
I've also removed the no items found section from the child view:
[wpv-no-items-found]
<strong>[wpml-string context="wpv-views"]No items found[/wpml-string]</strong>
[/wpv-no-items-found]
I hope this is now resolved :), really glad to help.
Thanks Minesh! That worked perfectly!
One more question before I mark this resolved.
My plan for an alternative solution for the search feature I wanted originally.....
Instead of having a search option, I will have 3 separate full listings like what you helped me with. Each list will show results for one the type of position. Then I would use Tabs, to switch between the lists of types of positions...
I tested filtering the current list by adding a filter to the positions view (see attached). It's working for this list. But this means that I will have two views for each list of the 3 position types (6 views in all). Is this the best solution or is there a better way? I was hoping that I can just have one child view (positions)and three parent views (states).
Please let me know and again, Thanks very much for you help.
Minesh
Supporter
Languages:
English (English )
Timezone:
Asia/Kolkata (GMT+05:30)
Can you please tell me what view you are talking about and to what view you added that additional filter?
The two views I'm referring to are #10137 "Careers 2.0 positions" and #10164 "Careers 2.0 bystate-Lateral". I added the additional filter to #10137 "Careers 2.0 positions"
The result is on this page:
hidden link
Minesh
Supporter
Languages:
English (English )
Timezone:
Asia/Kolkata (GMT+05:30)
You can use the same view but you need to change the filter to filter by view's shortcode attribute:
=> hidden link
Select posts with taxonomy:
Hiring Types slug in one of those set by the View shortcode attribute wpvhiringtype
eg. [wpv-view name="view-name" wpvhiringtype="xxxx"]
And the you should use the same view as:
[wpv-view name="careers-2-0-positions" tax="[wpv-taxonomy-title]" wpvhiringtype="professional-support-staff"]
Then you can use the same view but for another hiring type as:
[wpv-view name="careers-2-0-positions" tax="[wpv-taxonomy-title]" wpvhiringtype="entry-level-associates"]
More info:
=> https://toolset.com/documentation/legacy-features/views-plugin/passing-arguments-to-views/#controlling-the-filter-with-shortcode-attributes
Great! That works. So all I need now is 3 parent views (for the different hiring types) and the 1 child view (for positions). So from here, all I need to do is duplicate the current parent view and edit the shortcode in the loop of the two new parent views, correct?
Once you confirm that I have this right, I'll mark this as resolved. Thanks!
Awesome. Thank you very much fro all you help Minesh!