Home Forums Backend Issues (wp-admin) acf_form in admin backend, relational fields


acf_form in admin backend, relational fields

  • I am trying to setup a customized backend function which is actually based on an acf enhanced custom type.
    I placed a page to “/wp-admin/edit.php?post_type=event&page=event_log” (by using add_submenu_page). Here I used acf_form to output a group. works without any problems. One of the fields is a relations to the users entity.

    Anyway here the “Ajax” Callback does NOT goes to admin-ajax.php but actually to the current page ! So I assume there some snipple missing to define the ajax-callback URL.

    Already including acf_form_head(), but what is the missing piece here ? Any JavaScript missing ?



  • I had the same issue.
    I fix it by adding this function

    add_action('admin_enqueue_scripts', 'on_admin_enqueue_scripts' );
    function on_admin_enqueue_scripts() {
      global $pagenow;
      if ( 'edit.php' != $pagenow || $_GET['page'] != 'event_log' ) {
Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘acf_form in admin backend, relational fields’ is closed to new replies.