WP REST API Slow performance retrieving 500+ posts

I'm using the official WP REST API to retrieve posts. I want to retrieve all my posts (500+ posts). It takes longer than 1 minute to retrieve this! This is way way to long to use this API in a...

Nginx unknown directive "set"

I'm having a problem with nginx configuration. When i run nginx conftest i get error message nginx: [emerg] unknown directive "    set" nginx -V nginx version: nginx/1.8.0 built by gcc 4.4.6...

Renderblock JS and CSS Issue - W3 Total cache plugin

I'm using W3 Total Cache plugin on WP 4.3.1 for minifying Js and CSS for "above the fold" pagespeed requirements. I managed to minify most of the stuff without a problem, this is what's left...

Flickr hover photos

I'm trying to create a list of photos, and when you hover over them, they should enlarge. However, for some reason I can't get them to enlarge. I've added one photo at the top with the same class...

Server Bogs down when using eBeSucher traffic exchange

I have 6 sites first off are all on the same dedicated server, 2 of the sites get very steady traffic . I would say their is always at least 90 to 120 people on the 2 sites consistently and 15 to...

WP REST API Extending existing controller

My ideia is to get the list of categories but with only the fields that I need. The request parameters (exclude, include, order, per_page, etc.) should work as when using REST API. So I am trying...

ignore .git .gitignore from svn and .svnignore .svn from git

Background : To ignore .svn and .svnignore using .gitignore there is no problem. But to do so in the inverse I didn't achieve that. What I have tried : svn propset svn:ignore -R -F .svnignore...

How to run a PHP script continuously?

put in simple words: i am writing php scripts which send and receive sms, scripts will calculate to send users campaign SMS every week based on each user registration date, for example every...

can't access wp-admin giving me a white page

I connected cloudflare to my WordPress and enabled HTTPS flexible. made 2 page rules https://www.example.com/wp-login.php* https://www.example.com/wp-admin/* leaving SSL as flexible but disabling...

wordpress REST API - How to fetch style information?

I want to use the WordPress JSON api to fetch content for a mobile app. I can iterate over the posts I receive - and I notice there is a "Rendered" field in the posts. I want to display that to...

Insert custom post type with Custom field by using wp rest api

Hello i am unable to store the value of author field by using wp rest api. author is a custom field in custom post type book.all other fields are stored correctly. it ignores all the custom field...

WordPress Rest API Image Upload CORS Issue

I'm having a (seemingly simple) problem uploading images to Wordpress through it's REST API. Here's the situation right now: I'm currently developing locally on my machine so I'm running...

W3 total cache not minifying certain js file

Do you have any idea why W3 Total Cache is not minifying this one javascript file? https://www.gadrilling.com/wp-content/cache/minify/64ba3.js The rest of JS files are completely fine and...

Wordpress Rest API - invalid nonce with Backbone Client

I'm using the built-in Backbone Client whenever I try to make a request it gives me this error: {"code":"rest_cookie_invalid_nonce","message":"Cookie nonce is invalid","data":{"status":403}} I...

WooCommerce REST API - Get all products with its variations details in a single api request

I am new to woo REST API, i have a php page where i need to populate all products and variations. so i am using curl https://my_ip/index.php/wp-json/wc/v2/products then im looping it and passing...

Wordpress homepage 301 redirect to localhost

I've just moved a WordPress website from my local machine to the server. All the normal steps were done, such as updating the SQL database and setting it all up. The only problem is the homepage...

WooCommerce Order API always creates empty orders

Im playing around with Woo Commerce API (v3.4.4). I can get a product with: curl -X GET \ ...

Issue setting up headless wordpress starter kit with WSL

Github for the project: https://github.com/postlight/headless-wp-starter I'm trying to set up the headless starter kit on my windows machine with the WSL. But I keep getting stuck when I run the...

Should Prepros work to compile my SASS to CSS on a Github.io page? If so, what could be causing my SASS styling to not work on the Github.io page?

My project is styled just as I want it to be locally. After pushing it to GitHub and all the files appear to be present I published it to a GitHub.io page and none of my stylings are present. Have...

So what is the simplest approach for Caching in Flutter?

The app is a simple news reader which shows WordPress posts, nothing fancy, not using a BLOC, inherited Widget, Firebase. I want it to show the cached data(which is the latest 10 posts) even when...

Map a JSON String into an Item Model in FLUTTER

In this Project App is receiving posts from a WP REST API as JSON, it works fine, but I need to convert it to an Item Model (for caching and DB): so I created an Item-Model, now how can I...

Contact form 7 POST URL not found - 404

When I click the submit button on my contact form 7 form, I get a 404 Not Found error status on the POST URL. From what I can see, the Request URL has two trailing slashes after /wp-json/ . e.g...

WooCommerce Session returns blank

I am developing mobile application from my existing WooCommerce store. I have added custom APIs to maintain everything through user session. I don't know how session is being managed on...

Populate ACF Fields using Wordpress Rest API JS

I'm new working with WordPress and I'm playing around with the Advanced Custom Fields plugin. It seems nice but I'd like to know if it's possible to POST a new object (created using ACF) through...

woocommerce rest api: can't get preflight request to pass

I have a woocommerce site and I want its REST API to be open to the world. I have learned that CORS headers need to be set, so I google and setup the following hook: add_action('rest_api_init',...

Wordpress blocks: async REST calls in registerBlockType edit function

I'm writing a WordPress plugin that creates a block, the block needs to pull data using a custom REST endpoint that returns, in the example below, a simple string. I'd like to include this string...

Failed ping healthcheck after deploying TF2.1 model with TF-serving-container on AWS Sagemaker

We want to deploy a trained Tensorflow Model to AWS Sagemaker for inference with a tensorflow-serving-container. Tensorflow version is 2.1. Following the guide at...

How to disable tax being charged on shipping in WooCommerce?

I have configured my Woo-based shop to NOT charge any taxes on shipping: I do have a table for Zero Tax rate configured: however it still does during the checkout: as is apparent in the...

How to fix "Uncaught Error: Call to a member function get_tax_class() on null" in WooCommerce?

I've an ecommerce app that's was working fine some days ago. After I update the wordpress and woocommerce plugin, the app suddenly stopped working. I think that's something about the plugin that I...

Sagemaker deploy model with inference code and requirements

I trained a TensorFlow model and now I would like to deploy it. The data needs to be processed thus I have to specify one inference.py script and one requirements.txt file. When I deploy the...