Get ID in loop WP_query

Hello,

I have a form that deletes the post that is in a WP_query loop. So I have a field that fetches the post ID of the loop, it is displayed correctly in my field but when I submit the form it takes into account the ID of the global post where my loop is located.

Any idea how to make the changes apply on the right post?

Thank you!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.