Hi, i’m sorry but i’m not a programmer and i’m not sure about my modification.
I modified for my self this condition:
if($format === 'json')
header('Content-type: application/javascript');
and the output like this:
//Print output
$callback = $_REQUEST['callback'];
//start output
echo $callback . '(' . json_encode($output) . ');';
//echo $output;
This generate json like this:
(“{\”posts\”:[{\”ID\”:6434,\”post_author\”:\”1\”,\”post_date\”:\”2015-05-20 12:24:27\”,\”post_date_gmt\”:\”2015-05-20…
You can note the round bracket at the beginning, that works for my issue but i’m not sure about that for other people, i really and not sure about this arranged solution to be the right also for me but it works for sencha.
I tested in many ways the json for 2 days, i noticed that when i putted the json output in a texy file and the output was the same sencha (extJs) didn’t work, so i went to see Json Api code.
The json api plugin works too, but i use toolset and i prefear to use your plugin. It is my first time trying to implement JsonP
I can say that Json API doesn’t output the round braket