Problem: I would like to create a conditional that tests the ID of a parent post against the ID of another post created by the current User. I can use Views with post relationship filters and I can use nested Content templates to display the correct IDs, but the conditionals always fail because there is extra space around the ID output by the View.
Solution: You can use the new View option that removes the wrapping div around the output, or you can use the older filter that strips those extra elements. If you use the older filter, you must manually delete all line breaks and spaces from the View's loop editor.
Relevant Documentation:
https://toolset.com/documentation/user-guides/conditional-html-output-in-views/
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.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
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)
This topic contains 8 replies, has 2 voices.
Last updated by 5 years, 11 months ago.
Assisted by: Christian Cox.