Hocam hem single.php hemde single.css dosyasını paylaşıorum.




// Hit sayısını düzenle
update_post_meta($post->ID, xoption('hitCustomField'), get_post_meta($post->ID, xoption('hitCustomField'),true) + 1);
$postHit = get_post_meta($post->ID, xoption('hitCustomField'),true);
?>












foreach(explode(",", xoption('meta')) as $meta) {
switch ($meta) {
case "comment":
?>
break;
case "date":
?>
break;
case "author":
?>
break;
case "hit":
?>

$postHit = get_post_meta($post->ID, xoption('hitCustomField'),true);
if ($postHit == NULL) { $postHit = 0; }
echo number_format($postHit, 0, '', '.'); ?> kez görüntülendi


break;
case "category":
?>
break;
} } ?>



























Konusuna Ait Etiketler








Bu Konuyu Sosyal Medyada Paylaş


<script></script>



<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>



$catIDs = "";
foreach(get_the_category() as $category) {
if( $catIDs != "" ) { $catIDs .= ","; }
$catIDs .= $category->cat_ID;
}
$query = new wp_query(array('cat'=>$catIDs, 'posts_per_page'=>xoption('relatedCount'), 'post__not_in' => array($post->ID)));
if($query->have_posts()) : global $counter; $counter = 0;
?>

endif;
?>












Ek Olarak: Buda Single.css dosyası hocam

#single .metaBox{overflow:hidden;list-style:none;margin-bottom:6px;padding-bottom:6px;border-bottom:1px dotted #d2d2d2}#single .meta{float:left;margin-left:0;margin-right:20px;padding-left:20px;line-height:20px}#single .meta.category{background:url(images/sprite.png) 0 -1240px no-repeat}#single .meta.author{background:url(images/sprite.png) 0 -1280px no-repeat}#single .meta.comment{background:url(images/sprite.png) 0 -1320px no-repeat;padding-left:18px}#single .meta.hit{background:url(images/sprite.png) 0 -1360px no-repeat}#single .meta.date{background:url(images/sprite.png) 0 -1400px no-repeat}.socialShare{overflow:hidden;margin:6px 0 10px;border:1px solid #d2d2d2;background:#f5f5f5;padding:5px 10px;text-align:left;height:20px;line-height:20px}.socialShare span.title{line-height:20px;float:left;background:url(images/sprite.png) 100% -400px no-repeat;padding-right:20px;margin-right:10px}.facebook-share{height:20px;display:block;float:left;margin-right:30px;text-indent:-9999px;background:url(images/share.png);width:73px}.headingGroup{margin-bottom:5px;overflow:hidden;float:left}.headingGroup div:first-child{margin-right:4px}.thumbnail{float:left;width:398px}.singleAd{width:300px;height:250px;float:left}#singleAd img{display:block}#single .tags{margin:15px 0;overflow:hidden}#single .tags h3{font-weight:normal;margin-bottom:8px}#single .tags a{border:1px solid #eee;border-radius:3px;margin:2px 5px 3px 0;padding:3px 6px;display:block;float:left}#single .tags a:hover{background:#f9f9f9}#related{margin:0 -15px 10px;background:#f8f8f8;border-top:1px solid #eee;border-bottom:1px solid #eee;padding:0 15px 10px;overflow:hidden}#related h2{line-height:32px;text-align:center;padding:5px 0;margin:0}#singleAd2{margin-bottom:10px}#singlecontent .thumb{width:300px;float:left}#singlecontent .thumb img{display:block}#single .gallery{overflow:hidden;clear:both;margin-right:-8px}#single .gallery br{display:none}#single .gallery .gallery-item{width:171px;float:left;margin:0 8px 10px 0}#single .gallery .gallery-item img{width:165px;padding:2px;border:1px solid #ddd;height:110px}.nextLink a,.prevLink a{color:#fff;display:block;padding:0 5px;line-height:25px;border-radius:4px;border:1px solid #999}.prevLink{float:left;width:110px;height:27px}.nextLink{float:right;width:110px;height:27px}.activeNumber{font-size:16px;text-align:center;float:left;width:485px}#comments{clear:both}#comments h1{line-height:17px;font-size:18px;margin-bottom:10px}#comments ol{list-style:none;margin:0}#comments ol li{line-height:2;clear:both;overflow:hidden;margin:10px 0 0}#comments ol li ol li{margin-left:30px}#comments h3{font-size:17px;margin-bottom:15px}#reply-title{line-height:1}#comments small{font-size:13px}#respond{margin-top:20px}#comments div.comment-body{background:#f1f4f4;border:1px solid #e0e0e0;overflow:hidden;position:relative;border-radius:0 4px 0 4px;padding:5px 5px 0}#comments div.reply{clear:both;margin:0 0 -5px -5px}#comments div.reply a.comment-reply-link{background:#fff;border-top:1px solid #e0e0e0;border-right:1px solid #e0e0e0;display:block;float:left;border-radius:0 4px 0 4px;padding:0 8px}.commentlist .avatar{float:left;background:#FFF;border:1px solid #CCC;margin:0 10px 10px 0;padding:1px}.commentlist .comment-author cite{font-style:normal;font-weight:bold}.commentlist .comment-meta{color:#999;position:absolute;top:6px;right:10px}#comments textarea,#comments input[type=text]{background:#fdfdfd url(images/sprite.png) 0 -1600px repeat-x;color:#666;margin-bottom:8px;border:1px solid #ccc;padding:5px}input#submit{text-align:center;color:#000;cursor:pointer;border:0;border-radius:3px;font-size:12px;padding:6px 10px;border:1px solid #ccc;margin-bottom:2px}input#submit:hover{background:#ddd}#comments p.warning{color:red;font-style:italic}#comments p#author,#comments p#email,#comments p#url{line-height:1;padding:0;width:232px;float:left;margin-left:6px}#comments p#author{margin-left:0}#comments input#author,#comments input#email,#comments input#url{width:220px;display:block}#comments textarea{display:block;width:696px;height:90px;clear:both}#comments label{color:#999;font-size:13px;display:block;margin-bottom:5px}img.alignleft{border:1px solid #cdc;float:left;margin:0 10px 10px 0;padding:1px}img.alignright{border:1px solid #cdc;float:right;margin:0 0 10px 10px;padding:1px}.alignleft{float:left}.alignright{float:right}.aligncenter{display:block;margin:5px auto;text-align:center}#comments .says,#comments p.nocomments{display:none}