• 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/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Marco Cimmino

    (@cimmo)

    If you don’t show how you get $author_id filed how can anyone help you?

    Thread Starter crulz

    (@crulz)

    <?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.

    Plugin Author Marco Cimmino

    (@cimmo)

    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Cimy User Extra Fields] Author.php extra fields issue.’ is closed to new replies.