use the shortcode above to display them
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.
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
please contact me via my contact page, I can’t offer support for that plugin here
http://vdvn.me/contact
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