Support

Account

Home Forums Front-end Issues relationship field in front-end post not loading fields Reply To: relationship field in front-end post not loading fields

  • Hi Elliot, thanks for replying …

    Yes , i followed your tutorial to post with the front end form (acf_form()) but the relationship field is not loading in any items in the left hand column when i’m logged in not as administrator ( that’s because all my site is visible only for logged in user … maybe it can be related with my problem…). The others field work well … the post is created and saved ..

    the chrome console doesn’t show me any js error but if i try to log the xhr request the console show me nothing like no XHR has been sent …

    sorry for my bad english and thanks for help…

    this is the code in functions.php for block not logged in user i don’t know if can be useful… i don’t know where to put my hands … i’m a newbie developer …

    // block site for non users
    function bp_guest_redirect() {
    
    global $bp;
    
    if ( bp_is_activity_component() || bp_is_groups_component() || bp_is_blogs_component() || bp_is_members_component() || bp_is_profile_component() || bp_is_forums_component() || bp_is_friends_component() || bp_is_settings_component() || bp_is_page( BP_MEMBERS_SLUG ) ) {
    
    // enter the slug or component conditional here
    
    if(!is_user_logged_in()) { // not logged in user
    
    wp_redirect( get_option('siteurl') . '/welcome' );
    
    } // user will be redirect to any link to want
    
    }
    
    }
    
    add_filter('get_header','bp_guest_redirect',1);

    thanks for your work Elliot and have a good day !