• Resolved christianj40

    (@christianj40)


    Hello!

    I want to know if anyone can help me remove the bug I’m having, and I know what is causing it.

    To give you more background on the setup:

    I’m using ACF PRO, ACF Extenstion, CPT Post, and lastly, I have created a custom admin menu with a plugin called UIpress.

    How to replicate the issue:

    First, I create a custom admin page (call it whatever) example, Player Profile.

    Second, I customize the new admin page, however. Then I add the ACF Extension “form” option, with the following settings of “update post” and “update user.”

    Third, I “update” the profile using the frontend form(ACF Extension).

    Fourth, After the page refresh, the admin page shows the updated changes on the user profile. After that, you will notice two things 1. the custom admin page is deleted from the site/sidebar. 2. The CPT post entry creates a new post instead of updating the current one that the user is tied to (post author).

    If you repeat these steps and remove “update post” from the form settings within ACF Extension everything works fine (nothing gets deleted), but the post-entry never gets updated.

    So my two requests for you are:

    can you fix the deleting issue of the custom admin page, after hitting update?
    can you make sure it will update the correct CPT post based on the author? (each author will ONLY have one post)

Viewing 1 replies (of 1 total)
  • Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    Thanks for the feedback!

    This bug seems very strange. I’m not quite sure how an admin menu can be removed when submitting a front-end form. Please note that the ACF Extended Form module should be used on the front-end only (not on an admin page).

    I’m not quite sure to understand what your setup is supposed to update (a user or a post), but I woulds recommend to setup a clean WP install with ACF and ACF Extended only. Then create a simple Test Form with one single action that Update a Post or a User. This way you’re sure that you don’t have any custom code or plugin that interfere.

    If you want to update a Post, you can simply display the Form on the single.php template file, and create a “Post Action” that will update the current post.

    If you need further assistance, please post the code that you’re using on the front-end, the PHP page template you’re using, and a screenshot of your Form UI, so it will be easier to understand what you want to achieve.

    Hope it helps!

    Have a nice day!

    Regards.

Viewing 1 replies (of 1 total)

The topic ‘CPT Extenstion Delete’ is closed to new replies.