{"action":"closed","issue":{"url":"https://api.github.com/repos/tmconnect/acf-relationship-multisite/issues/13","labels_url":"https://api.github.com/repos/tmconnect/acf-relationship-multisite/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/tmconnect/acf-relationship-multisite/issues/13/comments","events_url":"https://api.github.com/repos/tmconnect/acf-relationship-multisite/issues/13/events","html_url":"https://github.com/tmconnect/acf-relationship-multisite/issues/13","id":101681101,"number":13,"title":"All ACF functions break on page when there's no value","user":{"login":"studiobovenkamer","id":8669362,"avatar_url":"https://avatars.githubusercontent.com/u/8669362?v=3","gravatar_id":"","url":"https://api.github.com/users/studiobovenkamer","html_url":"https://github.com/studiobovenkamer","followers_url":"https://api.github.com/users/studiobovenkamer/followers","following_url":"https://api.github.com/users/studiobovenkamer/following{/other_user}","gists_url":"https://api.github.com/users/studiobovenkamer/gists{/gist_id}","starred_url":"https://api.github.com/users/studiobovenkamer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/studiobovenkamer/subscriptions","organizations_url":"https://api.github.com/users/studiobovenkamer/orgs","repos_url":"https://api.github.com/users/studiobovenkamer/repos","events_url":"https://api.github.com/users/studiobovenkamer/events{/privacy}","received_events_url":"https://api.github.com/users/studiobovenkamer/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-18T15:18:39Z","updated_at":"2015-08-19T12:36:41Z","closed_at":"2015-08-19T12:36:41Z","body":"Hi Thomas,\r\n\r\nThank you for this great add-on! \r\n\r\nI'm experiencing the following problem:\r\n\r\n1. when there is a value selected (a custom post type post) from another subsite, everything works as it should.\r\n2. when there is no value selected then every ACF function (that comes after the multisite field) breaks on the page.\r\n\r\n`$acf_posts = get_field('trainers'); if( $acf_posts ) : \t... endif;`\r\n\r\nA var_dump for get_field('trainers') outputs `string(0) \"\"`\r\n\r\nUsing just this piece of code breaks every ACF function on the page when there is no value selected:\r\n`$acf_posts = get_field('trainers');` \r\n\r\nAny idea?\r\n\r\nI have the following set up:\r\n- WP 4.2.4\r\n- Using version 'ACF 5.2.7 and newer'. Activated as plug-in but the same problem occurs when included with functions.php. \r\n- Advanced Custom Field Pro 5.2.9\r\n\r\n"}}