ACF form edit front end post title does not change permalink

have you found an answer to that yet? I recently needed to redirect users to a custom made page that hosts an ACF form and loads the values of that particular post into the form. You are going to need 2 things in order to make that work:

  1. In your functions.php, redirect non-admin users to your edit page (which you’ll create at step 2) in the frontend. To do that add:

    add_filter( 'get_edit_post_link', 'custom_edit_post_link', 10, 1 );
    
    function custom_edit_post_link( $url ) {
        # If user is admin go to Dashboard
        if ( current_user_can('manage_options') ) {
              return $url;
        }
        # else redirect the user to my edit entry page & send the post_id on URL
        return esc_url( add_query_arg( 'post_id', get_the_ID(), home_url('/entry-edit/') ) ); //where entry-edit is my page's slug
    }
    

https://github.com/Alina-chan/acf_ideas/blob/master/front-end%20post%20edit%20with%20acf%20form/functions.php

  1. Now create a custom template for your page and name it {name}-edit.php. In there you should place your ACF form. Take a look at mine here:
    https://github.com/Alina-chan/acf_ideas/blob/master/front-end%20post%20edit%20with%20acf%20form/post-edit.php

By getting the post_id from your URI, you can use it inside your template and load the post’s values in your ACF form.

Hope it helped you a bit!

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)