Jump to content


Linked-in Permalink in ShareBar Section

Submitted by Evan Mattson on 26 October 2012 - 03:41 AM

#34sharebar section


Assigned To: Simon_P Fixed   Add Issue 

Evan Mattson

Issue Timeline

  • Simon_P updated issue fixed in to 2.3.5

    29 October 2012 - 07:00 PM

  • Simon_P updated issue version to 2.3.4

    29 October 2012 - 07:00 PM

  • Simon_P updated issue severity to Fixed

    29 October 2012 - 07:00 PM

array key typo for permalink in markup.

 function linkedin( $args ){   $defaults = array( &#39;permalink&#39; => &#39;&#39;, &#39;width&#39;  => &#39;80&#39;, &#39;hash&#39;  => ploption(&#39;site-hashtag&#39;), &#39;handle&#39; => ploption(&#39;twittername&#39;), &#39;title&#39;  => &#39;&#39;,  );    $a = wp_parse_args($args, $defaults);  ob_start();  ?> <script src="http://platform.linkedin.com/in.js" type="text/javascript"></script> <script width="100" type="IN/Share" data-url="<?php echo $a[&#39;perm&#39;];?>" data-width="<?php echo $a[&#39;width&#39;];?>" data-counter="right"></script>
  <?php
  return ob_get_clean(); }

$a['perm'] should be $a['permalink'].

Comments


TracDown © 2013 Michael Burton
Click to return to top of page in style!