Problem: I have a View that is filtered by post relationship, based on a shortcode attribute. When I display the View on its own, the results show up as expected. However, if I nest the View inside another View, the results no longer appear.
Solution: In this case, some custom code using the wpv_filter_query API was being applied too broadly and affecting the results of the nested View. Some conditional logic is required here to apply the filter more selectively.
Relevant Documentation:
https://toolset.com/documentation/programmer-reference/views-filters/#wpv_filter_query
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | - | - |
13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | - | - |
Supporter timezone: America/New_York (GMT-04:00)
Dieses Thema enthält 10 Antworten, hat 2 Stimmen.
Zuletzt aktualisiert von vor 5 Jahren, 8 Monaten.
Assistiert von: Christian Cox.