Top 30 Songs using Custom Post Type
If I understood correctly, that Peak Postion is based on longest period the song was in same position (which I found odd), here’s what you could do: Have three meta fields :: song_meta_peak :: song_meta_weeks_now :: song_meta_weeks_peak First time song enters the list, you set peak meta to whatever the position is and both weeks_now … Read more