I can't get the published post ID, i'm using a front end custom form. When the submit button is clicked site is re directed to a different page. Now, i can't get the just published post ID using:
Because it returns the ID of redirected page instead of the published post. How can i get it? I'm running in circles here.