I have set up my database so that there are two types of users, artist and users. An artist is a user and an artist. The artist’s user image is referenced in the user table. Some artists are featured. When they are selected featured a page is linked from the section page that shows more information about them. This page references fields from the artist table and should reference the user picture. How would I create a variable to call this image? I tried this, but it is not working:
$artist = new Artist(get_featured_artist($cat->data[\'parent\']));
$user_info = new My_User_Info(get_featured_artist($CID));
$t->set_var($artist->data);
$t->set_var($artist->extra_data);
$t->set_var(\'picture\', \'/images/users/\'.$user_info->data[\'picture_file_name\']);
Thanks.