• Resolved Toni X

    (@toni-x)


    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.

    • This topic was modified 3 years, 7 months ago by Toni X.
    • This topic was modified 3 years, 7 months ago by Toni X.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Shabti Kaplan

    (@shabti)

    All very good points. We will make up ir scenerio work very soon

    Plugin Author Shabti Kaplan

    (@shabti)

    Problems 2 and 3 are now taken care of in version 2.5.33

    Regarding having the buttons side by side, we are working on a solution for this

    Thread Starter Toni X

    (@toni-x)

    Thanks Shabti!

    I see two issues but I don’t know if they are related to the last edits you did:

    *** 1. In page A where I edit custom posts by query var, if I want to edit “post content” of custom post, the form shows “post content” of page A.

    *** 2. I can’t see field labels of “post” in frontend anymore. I can see labels for acf fields, just not the “post” ones. What I mean is:

    In page A where I edit custom post 35 with fields

    – post title
    – acf field 1
    – acf field 2

    I can see labels of acf fields 1 and 2, I can’t see label of post title.

    Likewise, in page B where I edit users info with fields

    first name
    last name
    acf fields 1, 2… 5

    I can see all acf fields labels, I can’t see first and last name labels anymore (it worked in the previous version of plugin).

    Edit: sorry for issue 1, it looks like it was just a cache problem.

    • This reply was modified 3 years, 7 months ago by Toni X.
    Plugin Author Shabti Kaplan

    (@shabti)

    Please make sure you have “show label” turned on

    • This reply was modified 3 years, 7 months ago by Shabti Kaplan.
    Thread Starter Toni X

    (@toni-x)

    It is turned on, but it works in backend only. In frontend doesn’t.

    Backend: https://i.imgur.com/arQ4VRt.jpg

    Frontend: https://i.imgur.com/ZNTAqTp.jpg

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Delete button for custom post type’ is closed to new replies.