Hi,
Below is my code for trying to display a single member, at random, from my member group (id “5”) based on whether a custom member field (trader_company) has been filled in.
I know for a fact that of the members I currently have all have the custom member field filled in but for some reason I’m getting mostly blanks and the occasional member data.
Any help greatly appreciated. The code below is embeded into another page if that makes any difference.
{exp:user:users group_id="5" orderby="random" limit="1"}
{if trader_company != ""}
<h2><a href="{path=">{trader_company}</a></h2>
{/if}
{trader_bio}
</div>
{if photo_filename}<img src="{photo_url}{photo_filename}" width="{photo_width}" height="{photo_height}" />{/if}
{/exp:user:users}
