I’m seeing “The response is not a valid JSON response.” on a wordpress site
I’m seeing “The response is not a valid JSON response.” on a wordpress site
I’m seeing “The response is not a valid JSON response.” on a wordpress site
register_sidebar has a bool param show_in_rest what are the repercussions of enabling it?
how to combine wordpress and front framework
wp_nonce_field() is intended to echo out the nonce as a hidden field in your form, but above you seem to have it somewhere else. If you want to create a nonce outside of the form HTML you need to be using wp_create_nonce(). By default the API is expecting a nonce key of wp_rest. No idea … Read more
It is not possible to pass query parameters (data) to the component <InnerBlocks />. However, there is a work around. You can fetch and store data in a parent block and then create separate “child” blocks according to the attributes (data) you want to pass (title, featured image, etc.) import { registerBlockType } from ‘@wordpress/blocks’; … Read more
Filtering posts by ACF filed using WP Rest API
Add ACF fields to Repeater items when using REST API
Fetch the CSS of a resource (page/post/etc)
Ajax load more post button not showing
Yes, authentication is needed, because the Posts endpoint will check whether the current user has the edit_posts capability – see WP_REST_Posts_Controller::sanitize_post_statuses(). Also, a HTTP status of 401 normally indicates that authentication is required. So try again, but with an authenticated request, i.e. make sure the current user is logged-in and has the edit_posts capability.