admin管理员组文章数量:1312889
Im trying to create a graph that displays count of post per day and display it on the search result page.
Search Example.
- User searches with the search term "football".
- 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?
本文标签:
版权声明:本文标题:wp query - How to use wp_query to post count by search term > group post count by date > convert to json. (ex. res 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741847563a2400869.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论