加载更多帖子,点击wordpress [英] load more posts wordpress on click

查看:84
本文介绍了加载更多帖子,点击wordpress的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在一个使用wordpress的网站上工作,几乎每天我都会在其中发布帖子,现在的问题是帖子列表太长了,我想要以下内容:每xx个( )帖子会出现一个按钮,该按钮使您可以加载下xx个(帖子数量).

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.

我已经尝试构建无限滚动javascript(包括代码和插件本身),但是我似乎无法使其按我想要的方式工作.

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.

我希望这里有人可以帮助我解决这个问题.

I hope someone here can help me with the problem.

推荐答案

我发现了这本很棒的教程,可以帮助我完成所需的搜索: http://www.problogdesign.com/wordpress/load- next-wordpress-posts-with-ajax/

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/

问题解决了! :)

这篇关于加载更多帖子,点击wordpress的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆