دانیال دزفولی
شنبه 11 مرداد 1393, 21:31 عصر
سلام
با کد های زیر چطور میشه نوشت که اگه شرط if برقرار نبود تو .content یه چیزی بنویسه
<?php if(have_posts()):?>
<section class="the_posts">
<?php while(have_posts() ): ?>
<?php the_post(); ?>
<article class="the_post">
<div class="content">
<?php the_content(); ?>
</div>
</article>
<?php endwhile; ?>
</section>
<?php endif ?>
با کد های زیر چطور میشه نوشت که اگه شرط if برقرار نبود تو .content یه چیزی بنویسه
<?php if(have_posts()):?>
<section class="the_posts">
<?php while(have_posts() ): ?>
<?php the_post(); ?>
<article class="the_post">
<div class="content">
<?php the_content(); ?>
</div>
</article>
<?php endwhile; ?>
</section>
<?php endif ?>