<?php if( $this->template->get( 'relationship' , true ) ){ ?>
<?php $rel = json_decode($user->getFieldData('RELATIONSHIP'));
echo $rel->type; ?>
<?php } ?>
The above code was given to me by you to display relationship status on the profile but since a few days back it only displays the values and not the relationship names as defined in ES language file.
Ex. For relationship type "It's complicated" - it shows only "complicated"
How do I display relationship type properly on the profile??
MORE EXPLANATION BELOW IF YOU WANT TO READ
---------------------------------------------------------------------------------
The above code shows the relationship status "constant". Example: for relationship status "It's complicated" it shows only "complicated" and for "In an Open Relationship" it just shows "open". See the attached screenshots.
Looks like the theme is not reading the language file.
When I change the values for relationshp status in the language file (siteroot/language/en-gb/en-GB.com_easysocial.ini), it doesn't show the changes on the profile. No matter what I type there, it doesn't show on the profile. Check the screenshot of "en-GB.com_easysocial.ini" file
Example: For PLG_FIELDS_RELATIONSHIP_OPEN="In an open relationship"
if I type PLG_FIELDS_RELATIONSHIP_OPEN="test". It doesn't show "test" on profile