My loop-single.php has a facebook plugin hardcoded. WHY?

  • dannybuzzby365
  • Newbie
  • Newbie
  • dannybuzzby365
  • Posts: 6

Post 68 days ago

This piece of code is the loop-single.php in my Starkers theme. I think this is the reason that all my posts have the facebook plugin for commenting in about my posts.

PHP Code: [ Select ]
<?php
/**
 * The loop that displays a single post.
 *
 * @package WordPress
 * @subpackage Starkers
 * @since Starkers HTML5 3.2
 */
?>
<?php $color = get_field('background_color', 5); ?>
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
      <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
         
         <div class="blog_post1 single_blog" style="background-color:<?php echo $color; ?>">
            <div class="blog_title1">
               <?php the_title();?>
               <div class="single_post_detail">
                  <li><?php the_time('F j, Y') ?></li>
               </div>
            </div>
            <div class="post_detail1">
               <div class="author_img">
                  <?php $id = get_the_author_meta( 'ID' ); ?>
                  <a href="<?php bloginfo('url'); ?>/author/<?php echo get_the_author_meta('user_nicename'); ?>"><?php echo get_avatar( $id, 150); ?></a>
               </div>
               <div class="authorname1">
                  <a href="<?php bloginfo('url'); ?>/author/<?php echo get_the_author_meta('user_nicename'); ?>"><?php the_author(); ?></a>
                  <span><?php echo get_the_author_meta('job_title'); ?></span>
               </div>
            </div>
 
            <div class="blog_single_content1">
               <?php the_content();?>
            </div>
         </div>
         <div class="single_bottom_content1">
            <div class="social_share">
               <div class="share_buttons">   
                  <a title="Share on Facebook" onclick="javascript&#058;window.open(this.href, '', 'menubar=no, toolbar=no, resizable=yes, scrollbars=yes, height=600, width=600'); return false;" class="facebook" href="http://www.facebook(.)com/sharer.php?u=<?php the_permalink(); ?>"><img src="http://the-inside-edit(.)com/wp-content/uploads/2016/03/1-2.png" /></a>
                     <a class="twitter" onclick="javascript&#058;window.open(this.href, '', 'menubar=no, toolbar=no, resizable=yes, scrollbars=yes, height=600, width=600'); return false;" title="Share on Twitter" href="http://twitter(.)com/home?status=<?php the_permalink();?>"><img src="http://the-inside-edit(.)com/wp-content/uploads/2016/03/2-2.png" /></a>
                  <a href="https://www.instagram(.)com/" onclick="javascript&#058;window.open(this.href, '', 'menubar=no, toolbar=no, resizable=yes, scrollbars=yes, height=600, width=600'); return false;"><img src="http://the-inside-edit(.)com/wp-content/uploads/2016/03/3-1.png" alt="Share on Google+" /></a>
                  <a title="Share on pinterest" href="http://pinterest(.)com/pin/create/button/?url=<?php the_permalink(); ?>&amp;media=<?php bloginfo('url'); ?>" onclick="javascript&#058;window.open(this.href, '', 'menubar=no, toolbar=no, resizable=yes, scrollbars=yes, height=600, width=600'); return false;"><img src="http://the-inside-edit(.)com/wp-content/uploads/2016/03/4-1.png" alt="Share on pinterest" /></a>
                  <a href="https://www.linkedin(.)com/shareArticle?mini=true&url=<?php the_permalink(); ?>" onclick="javascript&#058;window.open(this.href, '', 'menubar=no, toolbar=no, resizable=yes, scrollbars=yes, height=600, width=600'); return false;"><img src="http://the-inside-edit(.)com/wp-content/uploads/2016/03/5.png" alt="share icon"/></a>
               </div>
            </div>
            <div class="facebook_comment">
               <?php if(is_single('1828')){ ?>
                  <div class="fb-comments" data-href="<?php bloginfo('url'); ?>" data-width="500px" data-numposts="5"></div>
               <?php }else{ ?>
               <div class="fb-comments" data-href="<?php the_permalink(); ?>" data-width="500px" data-numposts="5"></div>
               <?php } ?>
            </div>     
         </div>  
         
      </article>
 
      <?php //comments_template( '', true ); ?>
 
<?php endwhile; // end of the loop. ?>
 
  1. <?php
  2. /**
  3.  * The loop that displays a single post.
  4.  *
  5.  * @package WordPress
  6.  * @subpackage Starkers
  7.  * @since Starkers HTML5 3.2
  8.  */
  9. ?>
  10. <?php $color = get_field('background_color', 5); ?>
  11. <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
  12.       <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  13.          
  14.          <div class="blog_post1 single_blog" style="background-color:<?php echo $color; ?>">
  15.             <div class="blog_title1">
  16.                <?php the_title();?>
  17.                <div class="single_post_detail">
  18.                   <li><?php the_time('F j, Y') ?></li>
  19.                </div>
  20.             </div>
  21.             <div class="post_detail1">
  22.                <div class="author_img">
  23.                   <?php $id = get_the_author_meta( 'ID' ); ?>
  24.                   <a href="<?php bloginfo('url'); ?>/author/<?php echo get_the_author_meta('user_nicename'); ?>"><?php echo get_avatar( $id, 150); ?></a>
  25.                </div>
  26.                <div class="authorname1">
  27.                   <a href="<?php bloginfo('url'); ?>/author/<?php echo get_the_author_meta('user_nicename'); ?>"><?php the_author(); ?></a>
  28.                   <span><?php echo get_the_author_meta('job_title'); ?></span>
  29.                </div>
  30.             </div>
  31.  
  32.             <div class="blog_single_content1">
  33.                <?php the_content();?>
  34.             </div>
  35.          </div>
  36.          <div class="single_bottom_content1">
  37.             <div class="social_share">
  38.                <div class="share_buttons">   
  39.                   <a title="Share on Facebook" onclick="javascript&#058;window.open(this.href, '', 'menubar=no, toolbar=no, resizable=yes, scrollbars=yes, height=600, width=600'); return false;" class="facebook" href="http://www.facebook(.)com/sharer.php?u=<?php the_permalink(); ?>"><img src="http://the-inside-edit(.)com/wp-content/uploads/2016/03/1-2.png" /></a>
  40.                      <a class="twitter" onclick="javascript&#058;window.open(this.href, '', 'menubar=no, toolbar=no, resizable=yes, scrollbars=yes, height=600, width=600'); return false;" title="Share on Twitter" href="http://twitter(.)com/home?status=<?php the_permalink();?>"><img src="http://the-inside-edit(.)com/wp-content/uploads/2016/03/2-2.png" /></a>
  41.                   <a href="https://www.instagram(.)com/" onclick="javascript&#058;window.open(this.href, '', 'menubar=no, toolbar=no, resizable=yes, scrollbars=yes, height=600, width=600'); return false;"><img src="http://the-inside-edit(.)com/wp-content/uploads/2016/03/3-1.png" alt="Share on Google+" /></a>
  42.                   <a title="Share on pinterest" href="http://pinterest(.)com/pin/create/button/?url=<?php the_permalink(); ?>&amp;media=<?php bloginfo('url'); ?>" onclick="javascript&#058;window.open(this.href, '', 'menubar=no, toolbar=no, resizable=yes, scrollbars=yes, height=600, width=600'); return false;"><img src="http://the-inside-edit(.)com/wp-content/uploads/2016/03/4-1.png" alt="Share on pinterest" /></a>
  43.                   <a href="https://www.linkedin(.)com/shareArticle?mini=true&url=<?php the_permalink(); ?>" onclick="javascript&#058;window.open(this.href, '', 'menubar=no, toolbar=no, resizable=yes, scrollbars=yes, height=600, width=600'); return false;"><img src="http://the-inside-edit(.)com/wp-content/uploads/2016/03/5.png" alt="share icon"/></a>
  44.                </div>
  45.             </div>
  46.             <div class="facebook_comment">
  47.                <?php if(is_single('1828')){ ?>
  48.                   <div class="fb-comments" data-href="<?php bloginfo('url'); ?>" data-width="500px" data-numposts="5"></div>
  49.                <?php }else{ ?>
  50.                <div class="fb-comments" data-href="<?php the_permalink(); ?>" data-width="500px" data-numposts="5"></div>
  51.                <?php } ?>
  52.             </div>     
  53.          </div>  
  54.          
  55.       </article>
  56.  
  57.       <?php //comments_template( '', true ); ?>
  58.  
  59. <?php endwhile; // end of the loop. ?>
  60.  


i do not want this. i want to use instead the Disqus plugin. How can i change this? I cannot use the WP Comment at all as only the facebook plugin shows. i am sure that the loop-single.php is supposed to call the comments.php into play but it does not. or maybe i am wrong here. Some much needed advice if you please community.

Much appreciated

Post Information

  • Total Posts in this topic: 1 post
  • Users browsing this forum: No registered users and 25 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2017. Ozzu® is a registered trademark of Unmelted, LLC.