Category "wordpress-rest-api"

How do I show custom recent posts in WordPress?

Now it's showing like this: now it's showing like this I want it to look like this: I want it to look like this

How to get a certain post, its tags and comments from Wordpress REST API using switchMap and then combine the resulting values using JS?

I am working on an Angular app that needs to fetch a certain post with a given ID, its respective tag names and comments from Wordpress REST API. This applicati

How to upload Audio file to wordpress via Rest API from flutter

I am able to upload images via API to WordPress but not audio files, it gives HTTP 500 error when I try to pass the Audio file to the method. But when I pass th

How to disable widget block editor of WordPress?

WP 5.8 comes with a new system to manage events named "Widgets Block Editor". How can I disable this new system and restore the classic widget editor of WordPre

Wordpress REST API user registration

I am trying to create new user with api v2 but i am getting { "code": "rest_cannot_create_user", "message": "Sorry, you are not allowed to create new

How do you add custom fields defined in posts to the rest API responses in wordpress

I want to do this without using any sort of plugin since these are both core wordpress features (custom fields and the REST API). Here is the documentation for

How can I use serialized data in Gutenberg?

I am trying to create a Sidebar plugin that stores post meta to be used on the front end. Without getting into the unnecessary details, I need to store all the

Wildcard search with slug - Wordpress REST API

We need to search post / pages using slug. I can search for exact slug, however not able to use wildcard search. http://localhost/wordpress/wp-json/wp/v2/pages?

Modify WooCommerce REST API product image upload

I have to create and update products via WooCommerce REST API, without image uploads to media library (only the image source is need to be stored, because they

Modify WooCommerce REST API product image upload

I have to create and update products via WooCommerce REST API, without image uploads to media library (only the image source is need to be stored, because they