Tell us what you are trying to do?
I apologize ahead of time for the complexity of this one, but I am unsure how else I could accomplish what I need.
I have two views, first one that displays two custom post types (Containers, Shipments), that is named 'per-warehouse-inventory-view-p4-date-filter'.
Second one that displays warehouses but also renders the first view within it, named 'per-warehouse-inventory-p3'.
This allows me to display the Containers and Shipments that belong to a warehouse.
What I'm attempting to do now is to filter the Container and Shipment results by date. To do so, I've created a universal date field that belongs to both Containers and Shipments. I've placed a conditional on the 'per-warehouse-inventory-view-p4-date-filter' view for Containers and Shipments that looks like this:
<wpv-loop>
[wpv-conditional if="( $(wpcf-universal-confirmed-date) ne '' ) AND ( $(wpcf-universal-confirmed-date) lte '[universal-date]' )"]
<tr>
[wpv-post-body view_template="loop-item-in-per-warehouse-inventory-view-p4-date-filter"]
</tr>
[/wpv-conditional]
</wpv-loop>
The shortcode in the conditional has been registered and is grabbing the date parameter from the URL when the date filter is applied. The shortcode is working, I've tested that output and it is correct. Infact when I display just this view with the date filter search it works correctly. You can see this on page id = 1378, when manually applying '&wpv-wpcf-universal-confirmed-date=1712707200' as the date filter in the URL.
However, when I move the search filter to the view 'per-warehouse-inventory-p3', it does set the url parameter correctly, but it doesn't return any results. So the conditional on the 'per-warehouse-inventory-view-p4-date-filter' view isn't working when it's 'passed through' to the second view.
You can see this on page id = 6652.
I'm open to any help, advice, or suggestions you can provide. Like I said I'm unsure how else to do this, but I understand that I'm likely applying a search filter on the 'per-warehouse-inventory-p3' view which displays the warehouses, that doesn't apply to the warehouse cpt, and that is likely returning nothing.
Thank you kindly!