typecho 如何在主循环中获取到当前元素的index

需求

希望在文章前加一个倒序的列表。

不用CID的原因是CID 不连续

相关代码

<?php while($this->next()): ?>
        <article class="post" itemscope itemtype="http://schema.org/BlogPosting">
            <h2 class="post-title" itemprop="name headline"><a itemprop="url" href="<?php $this->permalink() ?>"><?php $this->title() ?></a></h2>
        </article>
    <?php endwhile; ?>

预期解答

变量名,如$this->index()

阅读 2.3k
2 个回答
$this->sequence
新手上路,请多包涵