Support

Account

Home Forums Backend Issues (wp-admin) Populate Field using Post's Permalink Reply To: Populate Field using Post's Permalink

  • https://www.advancedcustomfields.com/resources/acf-save_post/

    
    add_filter('acf/save_post', 'post_permalink_to_field');
    function post_permalink_to_field($post_id) {
      $permalink = get_permalink($post_id);
      update_field('acf_permalink_field', $permalink, $post_id);
    }