<?php query_posts('cat=4&showposts=10'); ?>
<?php while (have_posts()) : the_post(); ?>
<a href="<?php the_permalink() ?>">- <?php the_title(); ?></a>
<br>
<?php endwhile; ?>
<?php query_posts('tag=persianscript&showposts=10'); ?>
<?php while (have_posts()) : the_post(); ?>
<a href="<?php the_permalink() ?>">- <?php the_title(); ?></a>
<br>
<?php endwhile; ?>
میشه برای روش استفاده کردنش یک توضیح جامعی بدین؟نمایش مطالب خاص بر اساس شماره موضووع:
نمایش مطالب خاص بر اساس تگ (برچسب):کد:<?php query_posts('cat=4&showposts=10'); ?> <?php while (have_posts()) : the_post(); ?> <a rel="nofollow" href="<?php the_permalink() ?>">- <?php the_title(); ?></a> <br> <?php endwhile; ?>
کد:<?php query_posts('tag=persianscript&showposts=10'); ?> <?php while (have_posts()) : the_post(); ?> <a rel="nofollow" href="<?php the_permalink() ?>">- <?php the_title(); ?></a> <br> <?php endwhile; ?>