Hallo, everybody!
I'm new to Wordpress, PHP, MySQL and all this stuff, so it's quite difficult for me to realize the idea I have:
I want to create a menu that is composed of tags (no "category"-menu). These tags shouldn't be sorted by their name or by the frequency of their use, but by the views of the posts they belong to. ... Let me show you, what I mean:
To Post1 belong the tags "tag1" and "tag2". The number of post-views is: 10
To Post2 belong the tags "tag2" and "tag3". The number of post-views is: 8
Now, I add the number of post-views to the respective tags and divide the result by the number of their use:
tag1: (10+0)/1=10
tag2: (10+8)/2=9
tag3: (0+8)/1=8
So, the menu should look like this:
- tag1
- tag2
- tag3
The effect is that the menu is dynamic and reacts on the behaviour of the users. The tags, which are frequently asked for, automatically ascend within the menu.
But I have no idea how to realize it! Could anyone please help me?!