hellow
i want deleted from google search my website
thanks
]]>This is one of the best JSON API Plugin but Some Post Items return empty Attachment fields. Is there any way to get the Featured image?
If possible which file needs to be changed.
“attachments”: [],
I’m using this plugin to use my wordpress database on a phonegap mobile app…
i can’t find any information on how to create or update custom fileds in a Post, can anyone help me?
]]>Hellow, I connect the plugin JSON API on my WordPress site and my App but Unfortunately it cause my sites to give me ERROR 500 sometimes due to many Requests made by this Plugin to retrive many data at the same time from my site.Help please, How To Fix this problem???
]]>Has anyone found a fork of this plugin that is compatible with PHP 7.2?
We get the following warning: Use of deprecated PHP4 style class constructor is not supported since PHP 7
]]>Hi guys, I have checked the API documentation and it seems as there is no way to set a parent id in a new comment, so replying is impossible.
The API sets the parent to “0” no matter what you do.
I wanted to ask if there is anyway to modify it so I could let people reply other people’s comments through an application based on this API.
Thank you!
I would like to get profile pictures of authors with get_author_index, how do i get them ?
]]>Hi there,
I am developing an app that reads from a domain and retrieves all custom post of an author using the method get_author_posts.
The problem is that posts array comes empty.
I get all the author information like first name, last name, etc. but the posts array come empty.
Can someone please explain me why?
]]>Hello,
I know that this plugin has not been updated since 3 years ago, but I need help.
I have disqus system on my blog and I don’t know why but the comment_count is not working anymore. It will retrieve always 0.
Do you have any suggestion on how to fix this problem?
Thank you!
]]>posts/create_post/?title=hello what&title_plain=hello&slug=&url=&content=&excerpt=cc&categories=editors-choice,society&status=&nonce=cf73db84ef
hi
i am using json api plugin and space in (title=hello what) cause return null
please help
tnx
I’m trying to use this plugin with a multisite environment but I get null for thumbnail value and also attachments are not always correct. Not sure what is happening.
I guess multisite was never supported and this plugin is abandoned?
]]>Hello,
I used this plugin to make CMS systems for JSON driven websites over the last years.
Now I want to get all taxonomies and custom taxonomies I added to a page. how can I do this. I had to write filters?
and the other thing: WPML support? is this possible? someone can do this?
]]>am currently creating an Android application that is based on my WordPress website. I have Json Api installed, and so does Rest Api, but I can’t seem to find any documentation about how to send a “post” request in order to create a post [Pending for review]. Where can I find anything about that, and if that’s impossible how do i do that myself?
Thank you!
I’ve written a controller “timeline” like this :
class JSON_API_Timeline_Controller {
public function category_posts() {
global $json_api;
$json = array();
// get attributes
$category_id = $json_api->query->category_id;
$post_type = $json_api->query->post_type;
$amount = $json_api->query->amount;
$main_post_id = $json_api->query->main_post_id;
if(!$post_type) $post_type = 'post';
if(!$amount) $amount = -1;
$posts = get_posts(array('post_type' => $post_type, 'numberposts' => $amount, 'category' => $category_id, 'orderby' => $eventdate, 'order' => 'DESC'));
if($main_post_id) $main_post = get_post($main_post_id);
else {
$main_post = $posts[0];
unset($posts[0]);
}
if($main_post) {
// setting first (main) post
$json['timeline'] = array();
$json['timeline']['headline'] = $main_post->post_title;
$json['timeline']['type'] = 'default';
$json['timeline']['startDate'] = date('Y,m,d', strtotime($main_post->post_date));
$json['timeline']['text'] = $main_post->post_excerpt;
$json['timeline']['events'] = array();
// example of media asset using the post thumbnail
if(has_post_thumbnail($main_post->ID)) {
$thumbnail_id = get_post_thumbnail_id($main_post->ID);
$thumbnail_src = wp_get_attachment_image_src($thumbnail_id, 'large');
$json['timeline']['events']['media'] = $thumbnail_src[0];
}
if($posts) {
//$json['timeline']['events']['date'] = array();
$json['timeline']['events'][$i]['text'] = array();
$i = 0;
foreach($posts as $post) {
$json['timeline']['events'][$i]['startDate'] = date_i18n('Y,m,d', strtotime(get_post_meta($post->ID, "_datepicker", true)));
$json['timeline']['events'][$i]['endDate'] = date_i18n('Y,m,d', strtotime(get_post_meta($post->ID, "_datepicker", true)));
if ( has_post_format( 'aside',$post->ID ) ) {
$json['timeline']['events'][$i]['text']['headline'] = $post->post_title;
$json['timeline']['events'][$i]['text']['text'] = '<span class="timelinelieu">'.get_post_meta($post->ID, "event_lieu", true).'</span>'.$post->post_content;
} else {
$json['timeline']['events'][$i]['text']['headline'] = '<a href="'.get_permalink($post->ID).'">'.$post->post_title.'</a>';
$typelist = '';
if ($eventtypes = get_field("type_de_event", $post->ID)) {
if(is_array($eventtypes)) {
foreach ($eventtypes as $key => $eventtype) {
$typelist .= $eventtype . ' | ';
}
$typelist = substr($typelist, 0, -2);
$typelist = '<br><span class="timelinetype">'.$typelist.'</span>';
}
}
$json['timeline']['events'][$i]['text']['text'] = '<span class="timelinelieu">'.get_post_meta($post->ID, "event_lieu", true).'</span>'.$post->post_excerpt.$typelist;
// example of media asset using the post thumbnail
if(has_post_thumbnail($post->ID)) {
$thumbnail_id = get_post_thumbnail_id($post->ID);
$thumbnail_src = wp_get_attachment_image_src($thumbnail_id, 'large');
$json['timeline']['events'][$i]['media']['url'] = $thumbnail_src[0];}
}
$i++;
}
return $json;
} else return 'Posts not found';
} else return 'Main post not found';
}
}
to get a file that could populate a timeline. I need something like this :
{
“title”: {
“media”: {
“url”: “//www.flickr.com/photos/tm_10001/2310475988/”,
“caption”: “Whitney Houston performing on her My Love is Your Love Tour in Hamburg.”,
“credit”: “flickr/tm_10001”
},
“text”: {
“headline”: “Whitney Houston<br/> 1963 – 2012”,
“text”: “<p>Houston’s voice caught the imagination of the world propelling her to superstardom at an early age becoming one of the most awarded performers of our time. This is a look into the amazing heights she achieved and her personal struggles with substance abuse and a tumultuous marriage.</p>”
}
},
“events”: [
{
“media”: {
“url”: “{{ static_url }}/img/examples/houston/family.jpg”,
“caption”: “Houston’s mother and Gospel singer, Cissy Houston (left) and cousin Dionne Warwick.”,
“credit”: “Cissy Houston photo:Tom Marcello<br/>Dionne Warwick: CBS Television via Wikimedia Commons”
},
“start_date”: {
“month”: “8”,
“day”: “9”,
“year”: “1963”
},
“text”: {
“headline”: “A Musical Heritage”,
“text”: “<p>Born in New Jersey on August 9th, 1963, Houston grew up surrounded by the music business. Her mother is gospel singer Cissy Houston and her cousins are Dee Dee and Dionne Warwick.</p>”
}
},
{
“media”: {
“url”: “https://youtu.be/fSrO91XO1Ck”,
“caption”: “”,
“credit”: “Unidisc Music”
},
“start_date”: {
“year”: “1978”
},
“text”: {
“headline”: “First Recording”,
“text”: “At the age of 15 Houston was featured on Michael Zager’s song, Life’s a Party.”
}
},
for now it looks more like this :
]]><!– <script> –>
<!–
// jQuery(document).ready(function(){
// jQuery(“#page”).fitVids();
// });
–>
<!– </script> –>
{
“status”:”ok”,
“timeline”:{
“headline”:”Cie Les Gens De…”,
“type”:”default”,
“startDate”:”2017,11,17″,
“text”:”En ayant la volont\u00e9 de pr\u00e9senter une danse ouverte sur d\u2019autres …”,
“events”:{
“”:{
“text”:[]},
“0”:{
“startDate”:”2018,02,15″,
“endDate”:”2018,02,15″,
“text”:{
“headline”:”G\u00e9rard Diby”,
“text”:”<span class=\”timelinelieu\”>Bures sur Yvette (91)<\/span>Danseur soliste<span class=\”timelinetype\”>CO2NEXIONS <\/span>”},
“media”:{“url”:”http:\/\/conexion.cluster003.ovh.net\/blog\/wp-content\/uploads\/medias\/2017\/11\/gerard.jpg”}},
“1”:{
“startDate”:”2018,02,15″,
“endDate”:”2018,02,15″,
“text”:{
“headline”:”Ludovic Ilolo aka Ucka D\u00e9lia<\/a>”,
“text”:”<span class=\”timelinelieu\”>Bures sur Yvette (91)<\/span>Com\u00e9dien, Danseur, Chanteur, Chor\u00e9graphe, R\u00e9petiteur… Cie Les Gens De…<br><span class=\”timelinetype\”>CO2NEXIONS <\/span>”},
“media”:{“url”:”http:\/\/conexion.cluster003.ovh.net\/blog\/wp-content\/uploads\/medias\/2017\/11\/image003.jpg”}},
“2”:{
…
This plugin hasn’t been updated in two years. Is it abandoned?
]]>In my website I need to install JSON API, but it is not working. Some fatal error showed me.
Kindly help me.
Thank you
]]>i’m trying to add custom_fields (in Postman), but it returns nothing
how is the correct way to post custom fields?
"custom_fields": {}
I’m trying to get all post from a category and type using this:
?json=get_category_posts&category_id=58&post_type=type1
And I get this response:
{“status”:”ok”,”count”:0,”pages”:0,”category”:{“id”:58,”slug”:”type1″,”title”:”Type1″,”description”:””,”parent”:0,”post_count”:1},”posts”:[]}
So, if there is one post, why it isn’t listed?
Also if instead of category_id or id I use slug=slug_name, the response is a 404.
Thanks.
]]>Could someone tell me how to request all post in one page? i even try to use this https://www.mydomain.com/apiget_posts/?count=-1 but still not working.
Thanks,
messages-set-reply controller, whats arguments of this controller ?
messages-get-detail controller, what’s arguments of this controller?
hello friends
https://url.com/api/get_search_results/?slug=blog&search=hello
]]>Hi dear JSON API Developers;
i want to make a news web site in RTL language. And I’m thinking of getting news with API or plugin from other news pages. How i can do it?
Can i make it just with using JSON API plugin without web servic?
if your answer is yes, how i can fined other pages api links?
]]>https://localhost/wordpress/api/get_category_posts/?id=63&meta_key=post_views_count&order_by=meta_value&order=desc
This query is invalid
Hi there,
I’m trying to implement CORS for my custom controller. How do I do this? Where do I set the following header:
header( “Access-Control-Allow-Origin: *” );
Thanks
]]>I want to request all post that are published on my blog, but when i request through API, it gives me the last 10 post. I tried using per_page=50, but still it gives me the last 10 post. Suppose, if my blog has 200 post, then how can i call all that 200 post in one request?
]]>Ao retorna post e exibindo o mesmo com angular, está exibindo na tela a tag <p> Assunto </p> e ao exibir o custom_fields está retornando na tela [” texto “] como remover?
abaixo segue um exemplo do object
content:”<p>Sistema responsável pela entrada e saída de documentos</p>?”
no caso na tela fica aparecendo a tag <p>
]]>Hi
When i receive response from my websites specific post, i get it like <p> Hello </p>
I need it without html tags
Please tell me how to do this
im use /api/user/register/?insecure=cool method to create account but cannot receive email ton create password !
]]>Hello Everyone,
How I can get all custom post type posts using this plugin?
I have tried with the below URL but it’s not working:
https://www.example.com/custom-posts/?json=1
When I directly run this URL I have an issue:
This page isn’t working
Please suggest how I can get all posts of custom post type URL?
Thanks
]]>I have added media files in post description, in the API response I get all the media files for posts , the deleted one’s also. the content lists down the media files contained but attcahements have all the media files, I have to particularly delete that file from media library. But I want to show only the files that are linked to a post in the attcahements array
]]>