I’ve been going through this issue and I’m not able to find a solution for this.
We have different stores Eg: fr, it, es, etc… So, the behavior of this bug is different in each store. I’d like to know if anyone else faces this issue. Has anyone come across this issue?
]]>hi
please update
Hello!
advise how to connect custom fields to the REST API
and meta fields to pass the value to them on request POST
I have a structure in my template
cmb2: {
_job_general: {
_job_salary: 150}
}
I need to fill in _job_general: and _job_salary: when accessing via POST request
]]>Hi i create an android app for my news site. I use wp rest api to auto feed the app.
As i can see wp rest cant show greek post text.
can you help?
i get this from rendering…do you have any solution?
“modified”: “2020-04-25T16:40:36”,
“modified_gmt”: “2020-04-25T13:40:36”,
“slug”: “tin-nea-artaki-episkefthike-i-elena-vaka”,
“status”: “publish”,
“type”: “post”,
“link”: “https:\/\/eviathema.gr\/evoia\/tin-nea-artaki-episkefthike-i-elena-vaka\/”,
“title”: {
“rendered”: “\u03a4\u03b7\u03bd \u039d\u03ad\u03b1 \u0391\u03c1\u03c4\u03ac\u03ba\u03b7 \u03b5\u03c0\u03b9\u03c3\u03ba\u03ad\u03c6\u03b8\u03b7\u03ba\u03b5 \u03b7 \u0388\u03bb\u03b5\u03bd\u03b1 \u0392\u03ac\u03ba\u03b1”
},
I couldn’t see a code that separates the subcategory or the main category. only have all categories. please provide a method for separating categories.
]]>I have installed your api in my local server. After install i tried to register a user using link https://localhost/wordpress/wp-json/wp/v2/users/register and method was post. Also i set parameter like below..
{
“username”:”abcdef”,
“email”:”[email protected]”,
“password”:”12345678″
}
It display 400 error with message “Username” field is required.
Please let me know how to solve the issue.
Thank you
]]>Can you please fix the error on this plugin, We are using this plugin in our website on PHP 7.2 version, We have checked the compatibility of rest api plugin with php 7.2? I’m receiving this error report on a PHP 7.2 compatibility test:
FILE: /nas/content/live/devreplicon1/wp-content/plugins/rest-api/lib/endpoints/class-wp-rest-posts-controller.php
—————————————————————————————————————–
FOUND 2 ERRORS AFFECTING 2 LINES
—————————————————————————————————————–
773 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
782 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
—————————————————————————————————————–
FILE: /nas/content/live/devreplicon1/wp-content/plugins/rest-api/lib/endpoints/class-wp-rest-revisions-controller.php
———————————————————————————————————————
FOUND 2 ERRORS AFFECTING 2 LINES
———————————————————————————————————————
285 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
288 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
———————————————————————————————————————
FILE: /nas/content/live/devreplicon1/wp-content/plugins/rest-api/lib/endpoints/class-wp-rest-comments-controller.php
——————————————————————————————————————–
FOUND 2 ERRORS AFFECTING 2 LINES
——————————————————————————————————————–
588 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
589 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
——————————————————————————————————————–
FILE: /nas/content/live/devreplicon1/wp-content/plugins/rest-api/extras.php
————————————————————————————————————
FOUND 1 ERROR AFFECTING 1 LINE
————————————————————————————————————
150 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
———————————————————
Can you please confirm/deny the PHP 7.2 compatibility? I’m receiving this error report on a PHP 7.2 compatibility test:
FILE: /nas/content/live/devreplicon1/wp-content/plugins/rest-api/lib/endpoints/class-wp-rest-posts-controller.php
—————————————————————————————————————–
FOUND 2 ERRORS AFFECTING 2 LINES
—————————————————————————————————————–
773 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
782 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
—————————————————————————————————————–
FILE: /nas/content/live/devreplicon1/wp-content/plugins/rest-api/lib/endpoints/class-wp-rest-revisions-controller.php
———————————————————————————————————————
FOUND 2 ERRORS AFFECTING 2 LINES
———————————————————————————————————————
285 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
288 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
———————————————————————————————————————
FILE: /nas/content/live/devreplicon1/wp-content/plugins/rest-api/lib/endpoints/class-wp-rest-comments-controller.php
——————————————————————————————————————–
FOUND 2 ERRORS AFFECTING 2 LINES
——————————————————————————————————————–
588 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
589 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
——————————————————————————————————————–
FILE: /nas/content/live/devreplicon1/wp-content/plugins/rest-api/extras.php
————————————————————————————————————
FOUND 1 ERROR AFFECTING 1 LINE
————————————————————————————————————
150 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
————————————————————————————————————
I have installed this plugin on my site, But i am unable to get tha post data from the site.
]]>Hi,
i want to retrieve widget data in wordpress using rest API.i did not find any solutions.please anyone help me with this.
]]>Hi,
i have menu item with custom url with id. i want to get the content of that menu item.
i cannot find any to get menu item data.anyone please help me with this.
Hello Guys,
I dont have expertise in wordpress.
https://example.com/wp-json/wp/v2/pages
This is my api which gives me all pages & their content.
But I have used WPML plugin to multiple languages. And i m trying to get page content in other languages but its not working. like
https://example.com/wp-json/wp/v2/pages?lang=fr
But it works in woocommerce, like in categories, products and orders etc..
But not working in static pages.. Please help asap.
]]>I have tried to create a rest-api which will update post metadata based on <post-id> and <meta-value>. meta key is _yoast_wpseo_redirect.
my API is not working as expected and I am getting json_no_route error while trying to hit it.
Here is my code in functions.php
function get_post_details ($params)
{
if(update_post_meta( $_GET[ 'id' ], '_yoast_wpseo_redirect', $_GET['value']))
{
$response['flag'] = 1;
$response['data'] = 'Successfully Update';
}
else{
$response['flag'] = 0;
$response['data'] = 'Some Problem';
}
return $response;
}
// Register the rest route here.
add_action( 'rest_api_init', function () {
register_rest_route( 'wp/v2', '/post_meta/', array(
'methods' => 'GET',
'callback' => 'get_post_details'
) );
});
Thanks for the help !
]]>Hello,
Posts can be displayed based on number of post views in range of from last 7 day to current day or average views per day. using
[ redundant link removed ]
please give some solution.
]]>Tried to used over comments but it’s not working.
{“code”:”rest_forbidden_param”,”message”:”Query parameter not permitted: author, author_email”,”data”:{“status”:401}}
Anyone has experienced with this?
Thanks
]]>Hi
i want filter api post with a custom filed
look api above every custom post have artist id field
how get posts api that have specific artist id field ?
Thanks
]]>Hi, I wanted to get /posts using Android Studio, but the JSON Array that includes the posts objects has no name, so I can’t use them.
How can I set a name for these objects?
I can’t access them without having a name
When we enter this plugin page, we nowhere see that WP already includes this.
on https://v2.wp-api.org/ somewher ein the middle page, in just “bolded” font, it is said.
however, THE TOP MOST MESSAGE AND MOST VISIBLE, should be that this plugin is no longer needed at all.
IT WASTES OUR TIME,after tens of minutes of trying to install this plugin, then we find that it is no longer needed.
]]>Hi,
I very search in Internet to find my problem
I use WP REST API but i get in wp-json/wp/v2/posts:
“Forbidden
You don’t have permission to access /wp-json/wp/v2/posts on this server.”
Please Help
TNX
I’m a few days struggling here and I can’t create a new user using WP REST API and define meta object in the JSON Body.
URL: https://localhost/wp-json/wp/v2/users/
Method: POST
JSON Body:
{
"username" : "test2",
"email": "[email protected]",
"password": "123456",
"meta": {
"messengerId": "11223344"
}
}
The user is created but the meta object is blank “meta”: []
What am I doing wrong?
]]>Right now it only shows tag id, not tag name. It shows name and id of category But in case of tag, no name is shown. How I can get tag name also. I don’t need tag ID but only need tag name. Is there a way of it?
]]>Hey there,
I get my posts of an cpt like this:
https://www.mywebsite.com/wp-json/wp/v2/cpt
at this posts there are shown post_meta values.
Does anyone know a way to order the posts by the meta like this:
https://www.mywebsite.com/wp-json/wp/v2/cpt?orderby=my_meta_field
I found some solutions, but none of them are working for me….
Please help!
Thanks! Stefan
Hi
I am using ultimate member plugin for membership site
and i want to create a mobile app in (ios app, android app)
so how to create a api for all users access on mobile app
according to database table (_user and _usermeta).
please help
]]>hi.. i have a problem to get all the posts that only have the featured image.
i think there’re 2 possible ways but i don’t know how to do it.
1. the featured_media value for all the posts that don’t have image is 0. i try this /wp-json/wp/v2/posts?featured_media=0 or /wp-json/wp/v2/posts?filter[featured_media]=0, it didn’t work.
2. there’s a meta key called ‘_thumbnail_id’. so for the post that doesn’t use the image will be an empty string. i use this /wp-json/wp/v2/posts?filter[meta_key]=_thumbnail_id but i don’t know how to filter the meta_value to return not empty.
any help ?
thanks
Hello…
I’m adding a user to my MU site in a specific subdomain with the the following URL:
This creates an user to the subdomain, but I can’t see it in the dashboard listing of users of this subdomain but in the other hand I can see it in the list of the main domain users.
I can edit the user and work with him via API, but for the subdomain users list the user doesn’t appears.
Any help?..
Thank you
Hello All,
Is this API support for user login?
Please let me know with example.
Thanks
]]>Hi,
using this plugin i get list of post of a custom post type. These posts sometime have & in title.
The API results convert the & to &.
How do i stop the plugin to convert the titles?
Thank you
]]>hi ,
i have installed this plugin but no data is showing on the url as explained in the fourms and documentations
i want to list my all post via json
i am using this url to get posts please tell me if i am using wrong url or something else i need to do to get all posts
https://jungleebuddha.com/wp-json/posts/
Hello, I try to transform my web site in a SPA with the wordpress rest API V2.
I have some pages which use some extensions like a portfolio (the exact name of the extension is Modula) and a calendar event (the exact name of the extension is “Liste des événements”).
In order to insert the extension in my pages, I use the appropriate shortcode.
Unfortunately the two extensions don’t work fine with the rest api : it seems that the shortcode are correctly transform into html code in the content response of the rest api (for the two extensions), but for the two extensions there is something wrong :
– modula return some javascript in the response content and this code seems not to be executed
– the calendar event need a css file which is not in the response (this problème is “solved” because I have had the css file in my header manually).
So, my question is : is it a good way to use the rest api V2 with page that use extensions? Is it some restrictions for the extensions we ca use with the rest api? And finally…does someone have a solution for my portfolio?
Best regards
CGodefrw
Hi,
I want to sort the rest api results for posts on acf type of data.
Wordpress doesn’t allow orderby on acf fields. How can I do the same?
Thanks a lot.
]]>