2010-05-14 62 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

相關問題