我在index.php的代碼在wordpress主題:如何在列表標題內容Wordpress中添加描述編號?
<div id="content">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
Book Title: <span class="title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a>. Writer: <?php the_tags(' '); ?>. Publisher: <?php the_category(', '); ?>. </span>
</div>
<?php endwhile; ?>
<?php endif;?>
</div>
我想看看我的博客如下:
........ 5. Book Title: ..... Writer: ..... Publisher: ..... 4. Book Title: ..... Writer: ..... Publisher: ..... 3. Book Title: ..... Writer: ..... Publisher: ..... 2. Book Title: ..... Writer: ..... Publisher: ..... 1. Book Title: ..... Writer: ..... Publisher: .....
我要補充,並放置在什麼碼?
更改您的問題標題。你想要作者姓名還是更改訂單? –
我想放標題前的號碼,號碼排序是desc。 –
我已經添加了答案。如果這有幫助的投票。 –