我的一篇帖子中有4个视频,使用nextpage quicktag显示。为了设置分页样式,我在single中使用了以下代码。php
<div class="pagelink"><?php wp_link_pages(\'before=LQ &pagelink=Chapter %\'); ?></div>
它给我的输出就像LQ第1章第2章第3章第4章但我想表现得像
LQ第1章第2章
总部第1章第2章
在seprate行中。我能为此做些什么?
所需的html输出应如下所示
<p class="link-pages">
LQ
<span class="page-link">Chapter 1</span>
<span class="page-link">Chapter 2</span>
<span class="page-link">Chapter 3</span>
</p>
<p class="link-pages">
HQ
<span class="page-link">Chapter 1</span>
<span class="page-link">Chapter 2</span>
<span class="page-link">Chapter 3</span>
</p>
为此,我将在我的帖子中使用like添加6章内容Chapter 1<!--nextpage-->
Chapter 2<!--nextpage-->
Chapter 3 <!--nextpage-->
Chapter 4 <!--nextpage--> // this will become chapter 1 in HQ
Chatper 5 <!--nextpage-->// this will become chapter 2 in HQ
Chapter 6