Why isn’t the ‘no results’ being shown when a query returns no results?
Managed to fix this, as @vancoder mentioned that the wp_die was causing there to still be a response and said to use die() instead. This didn’t work, so instead I changed the way the json was sent. By using wp_send_json() uinstead, we don’t need to use die() or wp_die() at the end of the function … Read more