php 点击加载更多帖子 wordpress
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/20167896/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
load more posts wordpress on click
提问by Erwin van Ekeren
i am working on a website with wordpress where i'm posting a post almost daily, the problem now is that the list of posts is getting a bit to long and I want to have the following: after every xx (number of) posts a button appears that gives the possibility to load the next xx (number of) posts.
我正在使用 wordpress 在一个网站上工作,我几乎每天都在那里发布帖子,现在的问题是帖子列表有点长,我想要以下内容:每 xx(数量)个帖子后按钮出现,可以加载下一个 xx(数量)帖子。
I already tried to build in the infinite scroll javascript (both in code as well as the plugin itself) but I can't seem to make it work the way I want it.
我已经尝试在无限滚动 javascript(包括代码和插件本身)中构建,但我似乎无法让它按照我想要的方式工作。
I hope someone here can help me with the problem.
我希望这里有人可以帮助我解决这个问题。
回答by Erwin van Ekeren
I found this amazing tutorial that helped me with what I was searching for: http://www.problogdesign.com/wordpress/load-next-wordpress-posts-with-ajax/
我发现了这个惊人的教程,它帮助了我搜索的内容:http: //www.problogdesign.com/wordpress/load-next-wordpress-posts-with-ajax/
problem solved! :)
问题解决了!:)

