$.ajaxSetup({ scriptCharset: "utf-8", //maybe "ISO-8859-1" contentType: "application/json; charset=utf-8" }); $.ajax({ type: 'GET', url: 'https://www.*****.com/wp-json/wp/v2/pages?slug=privacy-policy', data: { get_param: 'value' }, dataType: 'json', success: function (data) { $.each(data, function(index, element) { var txt = element.content.rendered; $("#privacy").html(txt); }); } });
Jagdish Sarma Asked question April 22, 2021