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

wp query - How to use wp_query to post count by search term > group post count by date > convert to json. (ex. res

programmeradmin0浏览0评论

Im trying to create a graph that displays count of post per day and display it on the search result page.

Search Example.

  1. User searches with the search term "football".
  2. The search result page shows a date based line graph such as this: / and a list below the graph with all the posts. (the graph uses json)

Im thinking something in the line of getting all post with the specific search term and then group them by date and then convert that to json.

Example: { "date": "2012-08-04", "value": 20 }

Any suggestions on how to approach this?

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论