I'm passing a variable into an embed file. I can output the value of the variable inside the embedded template no problem but when I use it in an channel:entries loop I'm not getting a result. Hard coding a value returns a result. Any thoughts?
<p>Member ID {embed:member_id}</p>
<?php $skills = array() ; ?>
{exp:channel:entries
channel="logbook"
orderby="date"
sort="desc"
dynamic="no"
author_id="{embed:member_id}"
disable="categories|category_fields|member_data|pagination"
}
<?php $skills[] = array('skill' => "{log_skill}{url_title}{/log_skill}", 'badge' => "{log_skill}{skill_badge}{/log_skill}"); ?>
{/exp:channel:entries}
<script>
var skills = <?php echo json_encode($skills); ?>
</script>