2015-09-04 38 views
1

我有一個4.3 wordpress系統,我在其上安裝了「Orca Theme」。刪除內容末尾的帖子查看次數

我發現我有後查看重複指示次數:

enter image description here

我想刪除第一個指標

我嘗試在主題代碼中查找amd搜索,並沒有找到顯示的內容第一個指標

postformat/standart.php:

<?php 
    $thumb_id = get_post_thumbnail_id(); 
    $thumb_url = wp_get_attachment_image_src($thumb_id, 'postlist', true); 
    $title_meta = get_post_meta($post->ID, 'title_style', true); 
    $title_meta = ($title_meta == ('banner' || 'title')) ? $title_meta : "standard"; 
    $category = get_the_category(); 

?> 

<article id="post-<?php the_ID(); ?>" <?php post_class(); ?> class="post standard"> 
    <?php if($title_meta == "banner"){ ?> 
     <a class="basicfeature" href="<?php esc_url(the_permalink()); ?>" style="background-image:url('<?php echo esc_url($thumb_url[0]); ?>');"></a> 
     <h1><a href="<?php esc_url(the_permalink()); ?>"><?php the_title(); ?></a></h1> 
    <?php }elseif($title_meta == "feature"){ ?> 
     <a href="<?php esc_url(the_permalink()); ?>" class="largeimage postfeature" style="background-image:url('<?php echo esc_url($thumb_url[0]); ?>');"> 
      <div class="shadow"></div> 
      <h1><?php the_title(); ?></h1> 
     </a> 
    <?php }else{ ?> 
     <h1><a href="<?php esc_url(the_permalink()); ?>"><?php the_title(); ?></a></h1> 
    <?php } ?> 
    <div class="info"> 
     <div class="left"> 
      <i class="issticky fa fa-thumb-tack "></i><a href="<?php echo esc_url(get_author_posts_url(get_the_author_meta('ID'))); ?>" class="author"><img src="http://0.gravatar.com/avatar/<?php echo esc_attr(md5(get_the_author_meta('user_email'))); ?>?s=32" alt="author" class="minigravatar"><?php the_author(); ?></a> 
     </div> 
     <div class="right"> 
      <a href="<?php esc_url(the_permalink()); ?>" class="date"><i class="fa fa-clock-o"></i><?php echo esc_html(orca_get_time()); ?></a> 
      <div class="category"><i class="fa fa-tags"></i> 
      <?php if($category){ 
       echo '<a href="' . get_category_link($category[0]->term_id) . '">' . $category[0]->name.'</a> '; 
      } ?> 
      </div> 
     </div> 
    </div> 
    <div class="postcontents"> 
     <?php the_content('', FALSE, ''); ?> 
    </div> 
    <div class="footer"> 
     <a href="<?php esc_url(the_permalink()); ?>" class="largesolid orange left"><?php esc_html_e('Read More', 'orcawp'); ?></a> 
     <a href="<?php esc_url(the_permalink()); ?>#comments" class="commentsbutton largeoutline right"><i class="fa fa-comments"></i><?php echo esc_html(get_comments_number($post->id)); ?></a> 
     <?php if(get_post_meta($post->ID, '_count-views_all', true) != ''){ ?> 
      <a href="<?php esc_url(the_permalink()); ?>" class="viewsbutton largeoutline right"><i class="fa fa-bullseye"></i><?php echo esc_html(get_post_meta($post->ID, '_count-views_all', true)); ?></a> 
     <?php } ?> 
    </div> 

回答

0

解決吧! 我剛剛取消激活「BAW帖子查看次數」插件,現在它被刪除!