Forum Replies Created

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

    (@xandarak)

    Not working for me. I turned on php error messages; here is dump:

    <b>Fatal error</b>: Uncaught Error: Cannot use object of type WP_Error as array in /home/xxx/public_html/wp-content/plugins/company-updates-for-linkedin/linkedin-company-updates.php:672
    Stack trace:
    #0 /home/xxx/public_html/wp-content/plugins/company-updates-for-linkedin/linkedin-company-updates.php(710): Linkedin_Company_Updates->get_remote_json(‘https://api.lin…&#8217;, ‘Failed to make …’)
    #1 /home/xxx/public_html/wp-content/plugins/company-updates-for-linkedin/linkedin-company-updates.php(787): Linkedin_Company_Updates->linkedin_api_call(‘xxx-xxx…’, ‘values’, Array)
    #2 /home/xxx/public_html/wp-includes/shortcodes.php(319): Linkedin_Company_Updates->get_updates(Array, ”, ‘li-company-upda…’)
    #3 [internal function]: do_shortcode_tag(Array)
    #4 /home/xxx/public_html/wp-includes/shortcodes.php(197): preg_replace_callback(‘/\\[(\\[?)(li\\-co…’, ‘do_shortcode_ta…’, ‘<h1>xxxxxx…’)
    #5 /home/xxx/public_html/wp-includes/class-wp-hook.php(286): do_shortcode(‘<h1>xxx…’)
    #6 /home in <b>/home/xxx/public_html/wp-content/plugins/company-updates-for-linkedin/linkedin-company-updates.php</b> on line <b>672</b><br />

    Default wordpress gallery output:

    
    $vdw_gallery = get_post_meta(get_the_ID(), 'vdw_gallery_id', true);
    if ($vdw_gallery) {
        echo do_shortcode('[gallery ids="'.implode(",", $vdw_gallery).'"]');
    }
    
Viewing 2 replies - 1 through 2 (of 2 total)