Fix: Updating failed. The response is not a valid JSON response.

I created a shortcode to output some HTML on the page. When I added the shortcode, I kept getting this error. Here is how I fixed it.

Make sure the shortcode doesn’t try to output anything directly.

Example: use “return” instead of “echo” in the shortcode function.

Newsletter Updates

Enter your email address below to subscribe to my newsletter

Leave a Reply

Your email address will not be published. Required fields are marked *