• Resolved jefrey

    (@jefrey1983)


    when the user login, we want to pull the basic profile by matching the email address, is it possible using this plugin?
    do we need to apply for a Linkedin Partner API program?

Viewing 9 replies - 16 through 24 (of 24 total)
  • Plugin Author Claude Vedovini

    (@cvedovini)

    use the shortcode above to display them

    Plugin Author Claude Vedovini

    (@cvedovini)

    use the shortcodes above to display them

    Thread Starter jefrey

    (@jefrey1983)

    i tried using

    <?php 
    
    do_shortcode('[li_card user="' . $user_id . '"]');
    do_shortcode('[li_profile user="' . $user_id . '"]');
    
    ?>

    but it displays nothing

    im testing it using php code widget

    • This reply was modified 6 years, 11 months ago by jefrey.
    Plugin Author Claude Vedovini

    (@cvedovini)

    My bad, sorry, the attribute to use is not user, it’s id, like so:

    
    do_shortcode('[li_card id="' . $user_id . '"]');
    do_shortcode('[li_profile id="' . $user_id . '"]');
    

    Make sure $user_id actually contains the id of the user you want to display the info from and make sure that user did connect his WP account to his LinkedIn account.

    During development process I suggest you add define('LI_DEBUG', true); to your wp-config.php file.

    You can also try to use author instead of the user id and the plugin will use the current author id:

    
    do_shortcode('[li_card id="author"]');
    do_shortcode('[li_profile id="author"]');
    

    You can see the plugin’s documentation here: http://vdvn.me/p1nd

    Thread Starter jefrey

    (@jefrey1983)

    when i tried to connect via linkedin i got this error
    Warning: Cannot modify header information – headers already sent by (output started at public_html/wp-content/plugins/wp-linkedin/class-linkedin-connection.php:174) in /home/pollen7/public_html/wp-includes/pluggable.php on line 906 and 931-946

    Plugin Author Claude Vedovini

    (@cvedovini)

    please contact me via my contact page, I can’t offer support for that plugin here

    http://vdvn.me/contact

    Thread Starter jefrey

    (@jefrey1983)

    alright

    Plugin Author Claude Vedovini

    (@cvedovini)

    Not sure what’s going on but I can’t send you email anymore, your server is refusing them.

    Please, just put the shortcodes on a page or post and send me the url

    Thread Starter jefrey

    (@jefrey1983)

    okay sent you an email using my gmail account

Viewing 9 replies - 16 through 24 (of 24 total)
  • The topic ‘Calling Basic Profile Upon Login Based on Email Address’ is closed to new replies.