Skip Navigation

[Resolved] Views Template and JSON

This support ticket is created 7 years, 6 months ago. There's a good chance that you are reading advice that it now obsolete.

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.

Our next available supporter will start replying to tickets in about 2.30 hours from now. Thank you for your understanding.

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 1 reply, has 2 voices.

Last updated by Luo Yang 7 years, 6 months ago.

Assisted by: Luo Yang.

Author
Posts
#448810

Hi!

I would like to know whether it is possible with the Views and Javascript to do GET query and receive an answer in the JSON format:

{
objectType: "Person"
name:[
"Andrew Downes",
"Andy Downes",
"Garemoko"
],
mbox:[
"mailto:andrew.downes@tincanapi.com",
"mailto:andrew.downes@rusticisoftware.com",
] account:[
{
homePage: "<em><u>hidden link</u></em>",
name: "mrdownes"
},
{
homePage: "<em><u>hidden link</u></em>",
name: "garemoko"
}
] }

Then make parsing a string and display it in the html.

#449017

Dear Oleg,

There isn't such a feature within Views plugin, The content template of Views plugin only works in the post content area, it can not work as JSON response (Without hearder area, footer area and other HTML codes).

It needs custom codes, I suggest you contact our certified partners for it:
https://toolset.com/consultant/

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.