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 !
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.