Hi, I’m working on website, where customer is allowed to create and save own custom posts on frontend. The problem is, edition should be possible within loop or at archive page – saved posts are custom post types – sizes of products. Customer can filter own sizes and edit them (in popup).
I’ve put form inside loop, so the ID of form is ID or CPT post, but as it’s always the same form, there are same ID’s of fields and it won’t work this way I suppose 🙁
Another way would be to put the form outside loop and set the ID of the form through jQuery when the edit button of post with particular ID was clicked.
Any suggestion how to do that?
Either use same form multiple times or dynamically set form ID through jQuery