I’m trying to output a custom member field from within a weblog:entries loop, but it’s not working. I’ve tried using member_id=”{logged_in_member_id}” as suggested in the comments section of the docs, but this is simply not outputting anything, even when I hardcode a member id as below:
<ul>
{exp:weblog:entries weblog="docs"}
<li>{exp:member:custom_profile_data member_id="18"}{a_custom_field}{/exp:member:custom_profile_data}</li>
{/exp:weblog:entries}
</ul>Moving that code outside the weblog:entries loop outputs the custom field successfully:
<ul>
<li>{exp:member:custom_profile_data member_id="18"}{a_custom_field}{/exp:member:custom_profile_data}</li>
</ul>However I need to be able to pass that member data via an embed along with the current entry_id, so really would like to be able to use it inside weblog:entries.
Have I missed something?