2010-05-14 63 views

回答

1

这里的代码位将可能是作者让你的帖子标题;为了这个自动断料的页面标题我有你的标题生成代码的...希望这可以帮助你得到的方式出现的至少一部分......

<?php $my_query = new WP_Query('author_name=YourAuthor&showposts=5'); ?> 
    <?php while ($my_query->have_posts()) : $my_query->the_post(); ?> 
    <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"> 
    <?php the_title(); ?></a><?php endwhile; ?> 
+0

很好,很好地工作。谢谢。 – Radek 2010-05-15 12:53:18

相关问题