1,579 questions
1
vote
0
answers
75
views
WordPress REST API: Large Image Uploads Not Reaching Backend Despite Proper PHP Settings
Problem Description:
I'm developing a chat application with image upload functionality using WordPress REST API. When users attach multiple large images (3 images), the request doesn't reach the ...
0
votes
1
answer
58
views
WordPress RestAPI in Javascript. How to get array data out of the response
I am working on a Gutenberg block and am modifying the Edit.js file. I want to fetch the root categories in the database. From the reading I have done, it seems a good way to do this is to use the ...
0
votes
0
answers
61
views
WordPress REST API orderby=rand parameter not working - returns same posts instead of random
I'm trying to fetch random posts using the WordPress REST API, but the orderby=rand parameter is not working as expected. Instead of returning random posts on each request, it
consistently returns the ...
-1
votes
1
answer
164
views
How to exclude specific REST API endpoints from being cached by WP Rocket?
I'm using WP Rocket along with their helper plugin WP Rocket | Cache WP Rest API which allows caching of WordPress REST API endpoints.
I’ve added the following filter to allow REST API caching:
...
1
vote
1
answer
43
views
Python cut text in pieces to upload to Wordpress Blog
I have a piece that already has some formatting. Now I need to convert this to a format so I can use the Wordpress API to send it to wordpress.
This is an example of my text:
'**H1: Some text**\n\...
1
vote
1
answer
213
views
Proper use of permission_callback in register_rest_route with JWT?
I'm developing a WordPress plugin that exposes several REST API endpoints — some are public, and others require authentication using a JWT token.
I understand that when using register_rest_route(), it'...
0
votes
0
answers
32
views
Rest API Wordpress : filter acf fields with arrays and getEntityRecords
i'm trying to filter through acf fields in wordpress Blocks. I have a couple of select components fetching all my posts and filtering them based on their acf fields. It's working pretty well except ...
0
votes
0
answers
42
views
Add-To-Cart REST API integration with woocommerce
this is my code for integrate product throught rest API.
Custom REST API endpoint for adding products to the WooCommerce cart.
Register the REST API route for adding to cart.
add_action('rest_api_init'...
0
votes
0
answers
24
views
Wordpress + ACF | REST API Query the Results by the Initial Character
I’m developing a custom data directory using WordPress and Custom Form Fields, and I’m fetching the data through the WordPress REST API to display it in a Next.js web application.
I need to filter the ...
0
votes
0
answers
47
views
How do I connect my python api to enable login to my wordpress website
I am creating an api that would allow users of my wordpress website to also login from a mobile device (I am making use of fast-api). but I cannot figure out how to hash the password from python so ...
1
vote
1
answer
76
views
PHP Assign Return Object Value to Local Variable
I am currently working on a WordPress/Woocomerce project I am trying to write a plugin which calls the stripe API using the following method
$stripe = new \Stripe\StripeClient('apikey');
$stripe-&...
1
vote
1
answer
235
views
elementor pro and Advanced ajax product filters conflict
my wordpress website was working just fine and I could use elementor pro untill I installed "Advanced AJAX Product Filters". upon installing this I couldnt edit pages with elementor anymore ...
0
votes
1
answer
88
views
WordPress REST API to create a post strips some of the content
I am using https://developer.wordpress.org/rest-api/reference/posts/#create-a-post:
$my_post =
"<!-- wp:kadence/rowlayout {'uniqueID':'5331_605d8b-3f','columns':1,'colLayout':'equal','...
1
vote
0
answers
291
views
How can i make POST request using JetEngine REST API in Wordpress
I've GET & POST API which i need to implement in wp website.
My goal is, using jetEngine Plugin, i wanna send POST request & make returned response visible in my page using jetEngine Lising ...
0
votes
1
answer
122
views
Upload webp images from wordpress api - Wordpress
Using node.
I want to upload some images to wordpress using the wordpress api.
I tested and it works with png.
Is this not possible with webp or maybe my code is wrong?
I tried before with the UI and ...
-1
votes
1
answer
104
views
How can i retrieve a list of posts from my wordpress-rest api, with the sticke posts on top?
When I want to get the posts from my Wordpress Rest API, the sticky posts are not at the top, but are sorted by date like the others.
When I try to sort by sticky
wp-json/wp/v2/posts?orderby=sticky
I ...
-1
votes
1
answer
55
views
Unable to Fetch Language Packs for Multiple Themes in Bulk via WordPress API
I'm trying to fetch language packs for multiple themes in bulk using the following WordPress Themes API endpoint:
https://api.wordpress.org/themes/info/1.1/?action=query_themes&request[fields][...
0
votes
2
answers
810
views
How to Add Meta Description and Focus Keyword to Post via WordPress REST API (wp-json/wp/v2/posts)?
I am using the WordPress REST API (wp-json/wp/v2/posts) to publish posts. The request works, but when I analyze the post in Yoast SEO, it says I need to add a meta description and a focus keyword (...
0
votes
1
answer
81
views
Get query using Url Wordpress ? wp rest api
I have a post type Properties. Property have their name(Title) image(Featured Image) and Locations(Acf Field). so i want to extract the exact property. from frontend i have a search form in which i am ...
1
vote
1
answer
100
views
Custom endpoint in REST API - Wordpress
I have a WordPress website and I want to add a custom endpoint that sends the metadata of the users.
Important:
The already API works only by calling it like this "domain-name.com/?rest_route=/wp/...
1
vote
0
answers
47
views
Test wp.data with Jest in Block Plugin
I am trying to get my head around testing my Wordpress Block Plugin with Jest. I am specifically struggling how to mock calls to wp.data.
See the following function:
import apiFetch from '@wordpress/...
0
votes
0
answers
22
views
can't get image from wordpress rest api in flutter
i want to fetch the image of my products in my flutter app ...
but i cant it show me this weird error and i don't know what is it for?
and this is my code ( exactly based on a tutorial that worked ...
0
votes
1
answer
228
views
how to show api data in wordpress?
I want a plugin to receive a nested json file from a url and display its information in the form of paged cards with ajax search capability.
Is there such a plugin?
I tested the wpDataTable plugin, ...
1
vote
1
answer
381
views
401 Error when trying to delete image via REST API Woocommerce
So I am trying to delete the product along with the images via REST API but it deletes everything EXCEPT the images. I've tested it separately to delete an image but it give me this error:
{"...
0
votes
1
answer
351
views
401 on wordpress webpage and showing all white
I have a wordpress website that was working fine until this morning. Now, all pages show white.
the funny thing is that if I hover my mouse over the white pages, I can see the links on the back.
When ...