numarul de posturi sa fie dat doar pentru functia data si nu pentru toata pagina
de exemplu vrau sa pun aceasta conditie intrun widget
Cod: Selectaţi tot
<?php if(have_posts()) : ?>
<?php while(have_posts()) : the_post(); ?>
<div class="feature_textblock1">
<div class="feature_header_small">Nume Categorie</div>
<div class="feature_img"><?php the_post_thumbnail(); ?></div>
<div class="feature_header">
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></div>
<div class="feature_text">
<?php the_excerpt(); ?>
</div>
<?php endwhile; ?>
<?php endif; ?>