Title: debugging
Last modified: August 22, 2016

---

# debugging

 *  [nbtv](https://wordpress.org/support/users/nbtv/)
 * (@nbtv)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/debugging-2/)
 * can anybody debug the following coding
    function kopa_social_sharing_links() {
   $display_facebook_sharing_button = kopa_get_option(‘kopa_theme_options_post_sharing_button_facebook’,‘
   show’); $display_twitter_sharing_button = kopa_get_option(‘kopa_theme_options_post_sharing_button_twitter’,‘
   show’); $display_google_sharing_button = kopa_get_option(‘kopa_theme_options_post_sharing_button_google’,‘
   show’); $display_linkedin_sharing_button = kopa_get_option(‘kopa_theme_options_post_sharing_button_linkedin’,‘
   show’); $display_pinterest_sharing_button = kopa_get_option(‘kopa_theme_options_post_sharing_button_pinterest’,‘
   show’);
 *  if ( $display_facebook_sharing_button == ‘show’ ||
    $display_twitter_sharing_button
   == ‘show’ || $display_google_sharing_button == ‘show’ || $display_linkedin_sharing_button
   == ‘show’ || $display_pinterest_sharing_button == ‘show’ ) : ?>
 *  <div class=”link-social-2″>
 *  <?php if ($display_facebook_sharing_button == ‘show’) :
    $facebook_url = ‘[https://www.facebook.com/share.php?u=&#8217](https://www.facebook.com/share.php?u=&#8217);.
   get_permalink(); ?> ” title=”Facebook” target=”_blank”><i class=”fa fa-facebook”
   ></i><?php echo __(‘  Facebook ‘, kopa_get_domain()); ?> <?php endif; ?>
 *  <?php if ($display_twitter_sharing_button == ‘show’) :
    $twitter_url = ‘[https://twitter.com/home?status=&#8217](https://twitter.com/home?status=&#8217);.
   get_the_title().’:+’ . get_permalink(); ?> ” title=”Twitter” target=”_blank”>
   <i class=”fa fa-twitter”></i><?php echo __(‘  Twitter ‘, kopa_get_domain()); ?
   > <?php endif; ?>
 *  <?php if ($display_google_sharing_button == ‘show’) :
    $gplus_url = ‘[https://plus.google.com/share?url=&#8217](https://plus.google.com/share?url=&#8217);.
   get_permalink(); ?> ” title=”Google” target=”_blank”><i class=”fa fa-google-plus”
   ></i><?php echo __(‘  Google +’, kopa_get_domain()); ?> <?php endif; ?>
 *  <?php if ($display_linkedin_sharing_button == ‘show’) :
    $linkedin_url = ‘”[http://www.linkedin.com/shareArticle](http://www.linkedin.com/shareArticle)??
   mini=true&url=’ . get_permalink(); ?> ” title=”Linkedin”><i class=”fa fa-linkedin”
   ></i><?php echo __(‘  Linkedin’, kopa_get_domain()); ?> <?php endif; ?>
 *  <?php if ($display_pinterest_sharing_button == ‘show’) :
    $pinterest_url = ‘
   [http://pinterest.com/pin/create/button/?url=&#8217](http://pinterest.com/pin/create/button/?url=&#8217);.
   get_permalink(); ?> ” title=”Pinterest”><i class=”fa fa-pinterest”></i><?php 
   echo __(‘  Pinterest’, kopa_get_domain()); ?> <?php endif; ?>
 *  </div>
    <?php endif; }

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [Matt Knowles](https://wordpress.org/support/users/aestheticdesign/)
 * (@aestheticdesign)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/debugging-2/#post-5697798)
 * Can you edit your post and put a code wrapper around the actual code?
 *  [juggledad](https://wordpress.org/support/users/juggledad/)
 * (@juggledad)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/debugging-2/#post-5697799)
 * and it would help to know what is happening that makes you think it needs debugging.
 *  Thread Starter [nbtv](https://wordpress.org/support/users/nbtv/)
 * (@nbtv)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/debugging-2/#post-5697814)
 * its vertical bar of social link i.e to share post on visitors social accounts,
   all buttons redirecting to error page instead opening the share page.
 *  [juggledad](https://wordpress.org/support/users/juggledad/)
 * (@juggledad)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/debugging-2/#post-5697835)
 * you have syntax issues in everyone of the url’s you are creating – you need to
   review them and correct the code. make sure you are aware of swapping between
   php and html.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘debugging’ is closed to new replies.

## Tags

 * [debugging](https://wordpress.org/support/topic-tag/debugging/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [juggledad](https://wordpress.org/support/users/juggledad/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/debugging-2/#post-5697835)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
