
There's even a National Football League player with Bakhtiari roots: David Bakhtiari of the Green Bay Packers.Īnd yet, some tribes of Bakhtiari continue to raise animals, grow barley and migrate between pastures with the seasons, just as they have for generations, explains Alam Saleh, of the Australian National University's Centre for Arab and Islamic Studies. Many vaulted into the Iranian elite, becoming academics, actors, ambassadors and athletes. Urbanization began to take hold in this region a century ago, and over the years, the majority of the Bakhtiari have assimilated. She says she does not like the nomadic way of life but feels she has no choice but to accept and endure it. They travel many hours on rough paths throughout the year, from pasture to pasture - and then there's the yearly 10-hour journey from their summer home to their winter home.
TRIBE GET EVENTS PHOTO VIEW UPDATE
It would then either perform another query for the matching events (or use one of the plugin's API functions) and update the View query args for the post_in parameter with an array of the event IDs, or if the data that connects the events to the venues is stored on the event posts in a simple way it may be possible to have the View perform the event query by updating its query arguments.Fereshteh, 14, is photographed in the central Zagros mountains, where her tribe spends spring and summer. It would first query the venues according to the state.


You would then use the wpv_filter_query API hook ( ) to add your custom code. Sorry I can't be more specific without knowing the details of how the plugin stores its data and the API available.įrom the Toolset side, you create a View for events. It may be if the queries are complex (because of how the data is stored) that you need to run both queries, the initial query for venues and the subsequent query for matching events, in code, but then if you are able to generate an array of event post IDs you can use the post_in argument (of WP_Query) where you essentially spoon-feed the View the IDs of the posts it should return and then you can still benefit from the output section of the View to generate the visual results even though the querying itself was done in code. Surely they have an API that can perform such queries? Their documentation or support should be able to help work that part out. I don't know anything about how that connection is stored by the plugin to help with that. You then query events that occur at these venues. You query venues that are in Maine (using the _VenueStateProvince field) to generate a list of possible venues. The principle is that you need to run a pre-query of venues before running the main query of events that are connected to those venues. It helps if you are familiar with the WP_Query class used by WordPress to retrieve posts and the options available: So, we have a View which shows events, and we only want to return events where the venue is in Maine, for example. When you say "filter events" I'm not sure whether you mean a static filter or whether you mean a front-end filter control as with a custom search.

Unfortunately not, filtering by fields of related posts is a part of the post relationships project that never got completed (you can vote for it here: ).

If I put the venues and events in a connected relationship via Toolset, do you think I would then be able to set up the filtering by State/Province?
