![]() |
Hello,
I'm using the text2tag plugin (this plugin adds all postcontent to a custom taxonomy as tags). I can use this to output the most used tags like this:
What I want to achieve is to limit the output by a daterange. So I can find 'trending tags'. F.e. Most popular tags of today* Obama (18 mentions) New York (15 mentions) Iron Man (11 mentions) Robin Hood (7 mentions) *Today should be manually configurable, so I can copy the function for most popular today, this week etc. Anyone who can help with this? Solution - 1
you need to replace dates that i have use for test by your dates, or a result of function [[LINK href="http://php.net/date"]]date[[/LINK]]... or any of [[LINK href="http://dev.mysql.com/doc/refman/5.1/en/date-and-time-functions.html"]]mysql date functions[[/LINK]]. example of combination for a one day...
|
Wordpress |
Type: | Code Example |
Category: | Coding |
Sub Category: | Code Example |
Uploaded by: | Admin |
Views: | 7 |