最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

wp query - How to get only return parts of WP_Query result for performance?

programmeradmin1浏览0评论

I am building a leaderboard for users in my site. Each user will have a custom meta field, game_won. WP_User_Query will be used for sorting users based on the value of this custom meta field.

As there will be about 1000 users in my site, I plan to show the result with pagination for performance issue.

The tricky part is, I want to highlight and show current user's position and those close to his position. How can I do query and only get some entries(let say 10) with current user being the 4th or 5th entry in the returned entries?

发布评论

评论列表(0)

  1. 暂无评论