我在动态添加 <--nextpage-->
标签仅在移动设备上添加到帖子中 . 似乎挂钩到 the_content
为时已晚,因为"the_post()"正在"the_post()"阶段决定 .
我找到了一些代码可以在"the_content"上执行此操作,但是,在 the_post
阶段, $content
无法进行操作 .
如果您能编写相关的PHP代码来挂钩/过滤正确的阶段并且能够在移动设备上查看的帖子上动态插入 <--nextpage-->
,我将非常感激 .
我正在使用wordpress thesis2,为hooks / filters / functions编辑custom.php .
先感谢您,
罗南 .
1 回答
这是答案:
http://www.byobwebsite.com/forum/general-thesis-questions/how-to-continue-reading-in-a-post-on-mobile-only/#p24251
您可以在上面的链接中找到要使用的代码 . R.