wordpress-rest-api Questions
7
I updated Wordpress to the latest version (5.0.3). Now, any time I try to post I get a red message that says "Publishing failed". If I try to save a draft I get "Updating failed".
In console, I'm...
Grimaldo asked 22/1, 2019 at 14:56
3
i got all API from WordPress except settings (/wp/v2/settings). its returning rest_forbidden error
{
"code": "rest_forbidden",
"message": "Sorry, you are not allowed to do that.",
"data": {
"s...
Kashgar asked 29/8, 2017 at 5:20
3
I'm attempting to use cookie authentication for WordPress REST API access using the Fetch API, however the auth is failing with the following error.
403: Cookie Nonce is Invalid
I'm using the ...
Spatula asked 13/9, 2017 at 18:5
2
Solved
I need to display all related products by eah product I have in my list.
Eg, In my app I have 3 products with id 1, 2, 3
product id 1 has 5,6,7 as related, product id 2 with related 8 and 9 etc..
...
Anciently asked 27/9, 2018 at 8:58
1
I am developing an android app for an eCommerce site that is built in wp-woocommerce.
I really don't know much about wp.
I have read http://woothemes.github.io/woocommerce-rest-api-docs/ and have d...
Butt asked 22/10, 2015 at 5:49
4
I have a Gatsby site that queries information from a Wordpress REST API with GraphQL to dynamically create the site pages. I'd like to set my index page to be the homepage that is being created dyn...
Eu asked 22/1, 2020 at 21:46
3
Solved
I am trying to fetch(filter) the posts modified after specific date through WordPress REST API 2.0-beta15 & WordPress v4.8.3 and update that with the existing posts in my client app.
Using aft...
Untangle asked 1/11, 2017 at 11:7
1
Solved
I am trying to create a new value to line_items in the Orders endpoint, but it shows an error that I don't know how to solve!
The code is from: Woocommerce REST API extending order response
Other h...
Meritorious asked 7/4, 2021 at 13:59
5
I am trying to run custom plugin on wp 4.7.4 . Below is my simple plugin
add_action( 'rest_api_init', 'register_routes');
function register_routes() {
register_rest_route( 'taxonomy-manager/v1...
Selfrighteous asked 26/5, 2017 at 14:40
3
I want to display the main menu items from Wordpress in another web-application. Therefor I need the content of wp_nav_menu exposed in the REST API.
Is there a standard way to access the menu stru...
Ferret asked 9/8, 2018 at 9:44
7
Solved
i am new to v2, i use v1 for long time, currently upgrade to v2, i try to get all the terms belong to specific custom taxonomy.
In v1 i can do this to get terms
/taxonomies/location_category/terms...
Emeldaemelen asked 25/2, 2017 at 22:12
4
I'm using the WordPress REST API in my project and sending a GET request to:
http://myblog/wp-json/wp/v2/posts
and It's working quite alright but I want to specify the fields though I don't kno...
Outboard asked 31/3, 2016 at 17:15
1
Solved
I have an issue with register_meta(),
I'm trying to create meta of an array for my custom post type and add it to REST API, but nothing,
here is my code:
function thefuturmeta_register_portfolio_me...
Gelman asked 24/10, 2020 at 16:40
2
The API is developed in Wordpress with POST method. API is working fine in POSTMAN and iOS(swift). I am getting response in POSTMAN and my colleague iOS developer also getting response.
But in And...
Naumann asked 1/5, 2019 at 6:12
1
Solved
Where must the registration function go? (register_rest_route())
Must it be in theme/child functions.php?
Or can it be in the plugin base php file? (e.g. \wp-content\plugins\example\example.php)
...
Uncleanly asked 13/10, 2020 at 1:22
2
I'm running the WordPress REST API (on WordPress 4.7.3) and when I hit /wp-json/wp/v2/posts I'm getting back JSON for my posts, but the content and excerpt fields are showing up blank - like this:
...
Louielouis asked 13/4, 2017 at 0:19
3
Is there a way that I can restrict access to url calls made to WP REST API? I am using WP REST API to create AJAX feeds that can be accessed through the URL. They are formatted like this: http://ex...
Obelize asked 18/8, 2015 at 21:30
2
I'm trying to use "getEntityRecords" to get custom post types from specific terms of taxonomy. For "post" I can use "categories" attribute in "query" object,...
Asuncionasunder asked 10/9, 2019 at 21:59
1
I've followed several examples and can't seem to register a custom endpoint. I'm creating a custom plugin and want to register a custom endpoint. Here is my code:
add_action( 'init', 'setup_init' ...
Melanite asked 30/1, 2017 at 18:50
4
Solved
This is a simple test script for create a new route:
add_action( 'rest_api_init', function () {
register_rest_route( 'ass', '/ativar', array(
'methods' => 'GET',
'callback' => 'testing_ro...
Hornbill asked 21/9, 2017 at 10:18
3
I have created a custom post type in Wordpress and exposed it to rest API. I have also added custom fields to this post using the ACF plugin.
In my themes function.php I have registered these fiel...
Itemize asked 29/5, 2017 at 1:50
2
Solved
Im trying to add a custom end point to my wp-rest api the latest version. I have this already but the one with the slug param at the end does not work.. Does any one know why.. would be great if an...
Ossification asked 26/1, 2016 at 21:35
3
Solved
I have a custom endpoint which looks like this:
add_action( 'rest_api_init', function () {
register_rest_route( 't2mchat/v2', '/get_curr_user_lang', array(
'methods' => 'GET',
'callback' =&g...
Delict asked 17/4, 2019 at 5:34
1
Solved
I am trying to create a coupon though the rest api from my rails 4 app using the sample code from the documentation on this page: https://woocommerce.github.io/woocommerce-rest-api-docs/?ruby#creat...
Max asked 17/7, 2019 at 13:49
2
Solved
I am using Wordpress version 5.2.1 which means I am not using a plugin for the WP API. I have working code which creates a new post (using a custom post type) on my WP site, all good there. The pro...
Irreducible asked 5/6, 2019 at 12:31
© 2022 - 2024 — McMap. All rights reserved.