Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter AztechXX

    (@aztechxx)

    I give up . It does not work. So I suppose that the API is not documented properly or that I did a mistake I still don’t understand .

    Nevertherless , thanks for your help Mr Vedovoni and thanks for your plugin that works very well for all the rest .

    Thread Starter AztechXX

    (@aztechxx)

    Dear Mr Vedovoni,

    Thanks a lot for your fast reply,

    I added a subfolder named “linkedin” in my theme (/wp-content/themes/Divi/linkedin) and placed there the certifications.php + the profile.php that i edited for the certification part.

    Things are improving, thanks to your advice, and to my big surprise, I succeeded to list the certification names but I can’t succeed to have the licence numbers and the starting and ending date.

    This is my humble code now :

    <div id="educations" class="section">
    <div class="heading"><?php _e('Certifications', 'wp-linkedin'); ?></div>
    <?php foreach ($profile->certifications->values as $v): ?>
    <div class="education">
    
    	<div class="school"><strong><?php echo $v->name; ?></strong> - <?php echo $v->start-date>year; ?> / <?php echo $v->end-date>year; ?> - <?php echo $v->number; ?></div>
    
    </div>
    <?php endforeach; ?>
    </div>

    I tried you command (“print_r”) and this is the output :

    stdClass Object
    (
        [_total] => 2
        [values] => Array
            (
                [0] => stdClass Object
                    (
                        [id] => 9
                        [name] => Prince 2 Foundation
                    )
    
                [1] => stdClass Object
                    (
                        [id] => 10
                        [name] => Project Management Foundation with Prince2 and IPMA
                    )
    
            )
    
    )

    If you allow me a last request, would you have an idea on how to get these elements:
    – certification number => the field is suppose to be “number”
    – the start and ending dates => the field output “0” or nothing if I had “>year” after the variable name.

    Thaks in advance for any advance you may have and thanks again for the help provided especially taking into account that I’m like a guy trying to walk in a dark night as I have no knowledge in php …

Viewing 2 replies - 1 through 2 (of 2 total)