Problem:
I have a shortcode of this type:
echo do_shortcode ('[wpv-view name = "10-next-matches" view_display = "layout" wpvrelatedto = "769,770"]');
But it doesn't work. This does not show me the matches of the chosen team IDs.
Solution:
You can try these:
1) Edit the post view "10-next-matches", in section "Query Filter", setup the filter as below:
Select posts in a YOUR-POST-REFERENCE-FILED-NAME relationship that are related to the Post with ID set by the URL parameter wpv-relationship-filter
2) Edit your PHP codes as below:
https://toolset.com/forums/topic/multiple-id-filter-of-view/#post-1732667
Relevant Documentation:
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 |
---|---|---|---|---|---|---|
- | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | - |
- | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | - |
Supporter timezone: Asia/Hong_Kong (GMT+08:00)
This topic contains 4 replies, has 2 voices.
Last updated by 4 years, 3 months ago.
Assisted by: Luo Yang.