• Resolved draex3

    (@draex3)


    I’m not sure how to explain this.

    I using this plugin with simple facebook connect plugin.

    When I added the “like” module
    the data is not showing correct for school and experinces

    When I debug, I notice that the “like” module re-read the content and add the “like” button after that

    therefore $linkedin_sc_exp_num running number will start at 4 instead of 0

    i added a code $linkedin_sc_edu_num = 0; into linkedin_sc_edu_handler and it works out fine not.

    I’m not sure would it screw up your design. Please advice.

    example

    function linkedin_sc_edu_handler($atts, $content = null) {

    global $linkedin_sc_profile;
    global $linkedin_sc_edu_num;
    $educations = $linkedin_sc_profile->education;
    $out = ”;
    $linkedin_sc_edu_num = 0;
    foreach($educations as $education) {
    $out .= do_shortcode($content);
    $linkedin_sc_edu_num++;
    }
    return $out;
    }

    https://www.ads-software.com/extend/plugins/linkedin-sc/

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: LinkedIn SC] regarding $linkedin_sc_exp_num and $linkedin_sc_edu_num’ is closed to new replies.