Jump to content

Shortcode to display image in custom field


MelB

Recommended Posts

Hi,

I am trying to display a field value for a user in another Joomla component. I am trying to follow a past example which works beautifully:

[jreviews type="listings" show_category="0" user="<?php echo $ESuser->id;?>"]

I am trying to display in the same way, an image for the same user (pulled from a jreviews field. So far I have tried these:

[jreviews type="externalimage" id="'.$entry['User']['user_id'].']

But that displays this:

['user_id'].']

Also tried:

[jreviews type="externalimage" user="<?php echo $ESuser->id;?>"]

Which displays this:

user="1942" ['user_id'].']

How do I get it to display the actual image rather than the user ID?

 

Any guidance would be greatly appreciated

 

 

 

 

 

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...