我试图从一个类别中获取一个帖子列表,回显该类别中所有帖子的标题和永久链接,但如果当前帖子在该列表中,则排除永久链接和帖子名称。
它将显示在single上。循环后或循环内的php
有人知道这是否可能,如果可能,怎么可能?
提前感谢
<?php query_posts(\'category_name=MyCatName&showposts=-1\'); ?>
<?php while (have_posts()) : the_post(); ?>
<a href="<?php the_permalink(); ?>">
<?php the_title(); ?>
</a>
<?php endwhile; ?>