I have an issue with this code. I use this in my author.php file but it just get the results from user1 i want every user to have their own profiles but its the same information on all profiles. Have been searching for a solution for hours now.
<?php
$values = get_cimyFieldValue($author_id, false);
foreach ($values as $value) {
$values_by_name[$value['TEST']] = cimy_uef_sanitize_content($value['VALUE']);
}
echo cimy_uef_sanitize_content($value);
?>
http://wordpress.org/extend/plugins/cimy-user-extra-fields/
If you don't show how you get $author_id filed how can anyone help you?
<?php
$curauth = (isset($_GET['author_id'])) ? get_user_by('slug', $author_id) : get_userdata(intval($author));
$values = get_cimyFieldValue(false, 'PRODOVRIG');
foreach ($values as $value) {
$user_id = $curauth['author_id'];
echo $value['PRODOVRIG'];
echo cimy_uef_sanitize_content($value['VALUE']);
}
?>
This is what have now.
You wanted only current author and you print PRODOVRIG for all users? This code does not make any sense to me.
Also $author and $author_id are filed how? Again not enough info.