Why does WP session redirect to wrong post?
I am making a WordPress plugin that allows users to create a post on the frontend and then automatically redirects them to the post they just created. I have to use two separate functions and a session variable to achieve…