böyle çalışçakmı deneyin bi
<?php get_header(); ?>
<div id="contentcontainer" class="grid_9 alpha">
<div id="content">
<?php global $current_user; $counter = 0;
get_currentuserinfo(); if (have_posts())
{
while (have_posts()) {
the_post();
if ($current_user->ID == the_author_ID()) { ?>
<?php $counter++; ?>
<div class="post">
<div class="meta grid_2 alpha">
<ul>
<li class="auth"><?php the_author_posts_link(); ?></li>
<li class="date"><?php the_time('j F Y'); ?><br /> <?php the_time('H:i'); ?></li>
<li class="comms"><a href="<?php comments_link(); ?>"><?php comments_number('0','1','%'); ?> <?php _e('Yorum',woothemes); ?></a></li>
</ul>
</div><!--grid_2-->
<div class="postbody grid_7 omega <?php if ( $counter == 1 ) { ?>first<?php } ?>">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<div class="entry">
<p><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"></a></p>
</div><!--entry-->
</div><!--grid_7-->
<div class="clearfix"></div>
</div>
<?php }}} ?>
</div><!--content-->
<div class="clearfix"></div>
<div id="postnav">
<div class="fl"><?php next_posts_link(__('« Eski Yazılar',woothemes)); ?></div>
<div class="fr"><?php previous_posts_link(__('Yeni Yazılar »',woothemes)); ?></div>
<div class="clearfix"></div>
</div><!--postnav-->
</div><!--contentcontainer-->
<?php get_sidebar(); ?>
<?php get_footer(); ?>integer string olaylarıda şöyle bişey
mesela
<?php
$x=2;
$y='2';
if($x==$y) { echo "esitlik1 saglandi<br>\n"; } else { echo "esitlik1 saglanamadi<br>\n"; }
if($x===$y) { echo "esitlik2 saglandi<br>\n"; } else { echo "esitlik2 saglanamadi<br>\n"; }
exit;
?>
şu scripti çaliştirin esitlik saglandi fakat esitlik 2 saglananamadi diyecektir çünkü
if($x==$y) derken data type önemsemeden sadece değer karşılaştırması yaparsınız
fakat
if($x===$y) derken data type larda önemsenir
2. eşitlik sağlanmaz çünkü $y bir string $x bir int değerdir