Problem:
Can Views be used to output a valid JSON string?
Solution:
No, not a native way.
What you can do is applay a Custom Filter to render a raw View's Loop.
Then, in the Loop, you can use JSON format.
This is the function you need:
https://toolset.com/forums/topic/views-not-working-after-installing-v1-11/#post-345294
One more for reference:
https://toolset.com/forums/topic/error-using-cred_generic_field-to-let-user-select-the-post-author/#post-346275
A user also acheived this by another Plugin:
https://wordpress.org/plugins/views-output-formats/
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 |
---|---|---|---|---|---|---|
- | - | 14:00 – 20:00 | 14:00 – 20:00 | 14:00 – 20:00 | 14:00 – 20:00 | 14:00 – 20:00 |
- | - | - | - | - | - | - |
Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)
This topic contains 2 replies, has 2 voices.
Last updated by Hector 7 years, 7 months ago.
Assisted by: Beda.