{"action":"created","issue":{"url":"https://api.github.com/repos/ThemeFuse/Unyson/issues/791","labels_url":"https://api.github.com/repos/ThemeFuse/Unyson/issues/791/labels{/name}","comments_url":"https://api.github.com/repos/ThemeFuse/Unyson/issues/791/comments","events_url":"https://api.github.com/repos/ThemeFuse/Unyson/issues/791/events","html_url":"https://github.com/ThemeFuse/Unyson/issues/791","id":100522526,"number":791,"title":"Multi-select page","user":{"login":"klvmedia","id":7681075,"avatar_url":"https://avatars.githubusercontent.com/u/7681075?v=3","gravatar_id":"","url":"https://api.github.com/users/klvmedia","html_url":"https://github.com/klvmedia","followers_url":"https://api.github.com/users/klvmedia/followers","following_url":"https://api.github.com/users/klvmedia/following{/other_user}","gists_url":"https://api.github.com/users/klvmedia/gists{/gist_id}","starred_url":"https://api.github.com/users/klvmedia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klvmedia/subscriptions","organizations_url":"https://api.github.com/users/klvmedia/orgs","repos_url":"https://api.github.com/users/klvmedia/repos","events_url":"https://api.github.com/users/klvmedia/events{/privacy}","received_events_url":"https://api.github.com/users/klvmedia/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"moldcraft","id":1475489,"avatar_url":"https://avatars.githubusercontent.com/u/1475489?v=3","gravatar_id":"","url":"https://api.github.com/users/moldcraft","html_url":"https://github.com/moldcraft","followers_url":"https://api.github.com/users/moldcraft/followers","following_url":"https://api.github.com/users/moldcraft/following{/other_user}","gists_url":"https://api.github.com/users/moldcraft/gists{/gist_id}","starred_url":"https://api.github.com/users/moldcraft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moldcraft/subscriptions","organizations_url":"https://api.github.com/users/moldcraft/orgs","repos_url":"https://api.github.com/users/moldcraft/repos","events_url":"https://api.github.com/users/moldcraft/events{/privacy}","received_events_url":"https://api.github.com/users/moldcraft/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-08-12T11:29:52Z","updated_at":"2015-08-18T19:34:27Z","closed_at":null,"body":"Hey there,\r\n\r\nI'm using the following for one of my blocks so I can select a page and link to the selected page.\r\n\r\n```php\r\n'link'      => array(\r\n    'type'       => 'multi-select',\r\n    'label'      => __( 'Multi-Select: Posts', 'unyson' ),\r\n    'population' => 'posts',\r\n    'source'     => 'page',\r\n)\r\n```\r\n\r\nI can't seem to get the option in my template as `echo wp_kses_post($service['link']);` just outputs an Array.\r\n\r\nI've searched the repo and have tried the code below but the just returns the first page, Home each time and not the selected page.\r\n\r\n```php\r\n$selected_posts = $atts['link'] ;\r\n$args = array(\r\n    'post__in' => $selected_posts,\r\n    'orderby' => 'post__in'\r\n);\r\n$posts = get_posts( $args );\r\n\r\nforeach($posts as $page){\r\n    the_title( $post->ID );\r\n}\r\n```\r\n\r\nAny help would be much appreciated, thank you!"},"comment":{"url":"https://api.github.com/repos/ThemeFuse/Unyson/issues/comments/132327134","html_url":"https://github.com/ThemeFuse/Unyson/issues/791#issuecomment-132327134","issue_url":"https://api.github.com/repos/ThemeFuse/Unyson/issues/791","id":132327134,"user":{"login":"klvmedia","id":7681075,"avatar_url":"https://avatars.githubusercontent.com/u/7681075?v=3","gravatar_id":"","url":"https://api.github.com/users/klvmedia","html_url":"https://github.com/klvmedia","followers_url":"https://api.github.com/users/klvmedia/followers","following_url":"https://api.github.com/users/klvmedia/following{/other_user}","gists_url":"https://api.github.com/users/klvmedia/gists{/gist_id}","starred_url":"https://api.github.com/users/klvmedia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klvmedia/subscriptions","organizations_url":"https://api.github.com/users/klvmedia/orgs","repos_url":"https://api.github.com/users/klvmedia/repos","events_url":"https://api.github.com/users/klvmedia/events{/privacy}","received_events_url":"https://api.github.com/users/klvmedia/received_events","type":"User","site_admin":false},"created_at":"2015-08-18T19:34:27Z","updated_at":"2015-08-18T19:34:27Z","body":"Hi,\r\n\r\nThanks for getting back, I'm using this inside a foreach and not getting anything back.\r\n```\r\n<?php foreach ( $atts['services'] as $key => $service ) : ?>\r\n\t\t\t<div class=\"col-md-4 services-small scrollme animateme\" data-when=\"enter\" data-from=\"0.5\" data-to=\"0.05\" data-translatey=\"100\" <?php if($service['fade'] == 'yes'){ ?> data-opacity=\"0\" <?php }?>>\r\n\t\t\t\t<div class=\"col-md-3\">\r\n\t\t\t\t\t<a href=\"<?php print_r(fw_get_db_settings_option('link')); ?>\" title=\"<?php echo wp_kses_post($service['title']); ?>\">\r\n\t\t\t\t\t\t<img src=\"<?php echo wp_kses_post($service['icon']['url']); ?>\" alt=\"<?php echo wp_kses_post($service['title']); ?>\" />\r\n\t\t\t\t</div>\r\n\t\t\t\t<div class=\"col-md-9\">\r\n\t\t\t\t\t<h3 class=\"no-underline left\">\r\n\t\t\t\t\t\t<a href=\"#\" title=\"<?php echo wp_kses_post($service['title']); ?>\">\r\n\t\t\t\t\t\t\t<?php echo wp_kses_post($service['title']); ?>\r\n\t\t\t\t\t\t</a>\r\n\t\t\t\t\t</h3>\r\n\t\t\t\t\t<p><?php echo wp_kses_post($service['content']); ?></p>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t<?php endforeach; ?>\r\n```"}}