Delete button for custom post type
-
Hi,
this is the scenario:
Page A displays all posts of custom post type “my_custom_pt”. Every post has a link to page B like //pageb?id=124
Page B has a ACF Frontend Form to edit the custom post type. The id of correct post is passed by query var.
I can edit info and set “redirect to referral (Page A) on submit“, all works fine. But I need a button to delete the post too. If I activate “delete post option” or if I use Trash Button widget there are 3 problems:
1) The delete button is below the update-submit button. There are no options to have them side by side like [update] [delete]
2) The delete button actually delete Page B, not the custom post I want to delete
3) Even if it did what I need, there is no way to “redirect to referral (Page A) on delete” like on submit.
- The topic ‘Delete button for custom post type’ is closed to new replies.