Shortcode not being executed
Welcome. By using die function, You are stopping the process and it will stop immediately after running the shortcode callback. Better to let the rest of the code to be executed. You need to return something in shortcode callback function instead of sending headers using die or echo. So, change your code to something like … Read more