Wordpress 4.9.7分页问题

时间:2018-07-16 22:45:06

标签: php wordpress pagination

我正在使用WordPress 4.9.7的网站中工作,我需要在博客部分中实现分页系统,其功能应类似于超级按钮。我确实将分页代码成功实现到模板的index.php中,因为我只需要在while循环后添加方法wpex_pagination(),并且主页上有分页(下面的代码),但是我不知道我需要使用相同的代码处理文件,以查看在yoursite.com/category/somecategory动态创建的页面中的分页,所以这将是我的问题:

我需要将哪个PHP文件插入模板文件夹中,以影响以这种URL创建的动态页面:yoursite.com/category/somecategory?

这是index.php的一部分,可以在首页中起到神奇作用

matches = [u'This! Is! An! Example! of! a! Long! String!', u'This ain\'t']
docs = [d for d in list(nlp.pipe(matches)) if len(d)<10]
matcher = PhraseMatcher(nlp.vocab)
matcher.add('things', None, *docs)

0 个答案:

没有答案