i'm trying recent posts wordpress blog it's returning html instead of json. want use json make easier access blog contents. have plugin installed , activated. here's posts:
$http.get('blog/?json=get_recent_posts') .success(function(data, status, headers, config){ $scope.post = data; console.log(data); }) .error(function(data, status, headers, config){- console.log("unable access!!!!!!!!!!!"); }); what's reason it's returning html instead of json? there workarounds? other posts mentioned using jsonp did not work me either.
Comments
Post a Comment