For speed-kini.de we have two types of tables:
- Tables which show the current rankings overall, women, juniors, foil..
- Tables which show rankings of previous years (archive) for overall, women, juniors, foil…
The initial approach was having two different wpDataTables: one for the current year and one with the year as variable. This duplication should ring all your software engineer alarm bells!
Another possibility would have been to use the archive tables for the current rankings by just setting the variable to 2021, 2022 etc… this would mean work every year to edit the wordpress pages and manually increase the variable to the current year. So this is a bit nicer but still means regular maintenance work.
After some thought, I ended up with a neat approach how to use one table for both: current and archive.
For the current year you just leave the variable empty and for archive you specify the variable to your desired year.
The mechanism to default to the current year in case no year is specified consists of two parts:
#1 Setting the default value of %VAR1% to a very high number (> 5000 should be enough 😉 )

#2 Small SQL modifications to the places which use %VAR1%
[...]
WHEREYEAR(date) = LEAST(year(curdate()), %VAR1%)
[...]
9,038 comments
потолки потолки .
потолочник потолки https://natyazhnye-potolki-samara-2.ru/ .
brightideaweb – Layout is intuitive, reading flow is smooth and comfortable.
wavefusion – Visual hierarchy is good, important stuff stands out immediately.
metarise – Visual hierarchy is great, makes scanning content simple and quick.
brightideaweb – Typography is crisp, spacing works well throughout the site.
sharpwave – Design is sleek and modern, very pleasing to the eyes.
wavefusion – Really like the style here, feels fresh and creative.
cyberlaunch – Useful resources are easy to access, menus make sense.
brightideaweb – The voice is friendly and encouraging, good engagement vibe.
Частный заем денег мфо домашние деньги альтернатива банковскому кредиту. Быстро, безопасно и без бюрократии. Получите нужную сумму наличными или на карту за считанные минуты.
metarise – Pages load fast, no lag, pleasant browsing experience overall.
Все спортивные новости http://sportsat.ru в реальном времени. Итоги матчей, трансферы, рейтинги и обзоры. Следите за событиями мирового спорта и оставайтесь в курсе побед и рекордов!
sharpwave – Helpful guides here, I can apply tips right away.
cyberlaunch – Visuals are sharp, layout is uncluttered and pleasing.
brightchain – Design looks modern, I like the visual elements they chose.
innovatewithus – Videos and articles both are engaging, love that mix.
metarise – Very user friendly, easy to find what I need each visit.
cyberlaunch – Navigation is smooth, didn’t struggle to find anything.
sharpwave – Helpful guides here, I can apply tips right away.
brightchain – Design looks modern, I like the visual elements they chose.
Все спортивные новости http://sportsat.ru в реальном времени. Итоги матчей, трансферы, рейтинги и обзоры. Следите за событиями мирового спорта и оставайтесь в курсе побед и рекордов!
innovatewithus – Pages load quickly, no clutter, really smooth user experience.
alihidaer2313 – I enjoyed browsing, the feel is straightforward and uncluttered.
cloudmark – Pages load quickly, good performance even with graphics.
bestchoiceonline – Deals and offers pop up nicely, gets my attention every time.
brightchain – Pages load swiftly, even images appear crisp and sharp.
innovatewithus – Videos and articles both are engaging, love that mix.
cloudmark – Color scheme is balanced; contrast helps highlight important parts.
bestchoiceonline – Overall experience positive, likely to recommend to friends.
nextbrand – Looks sleek, very modern layout and clean with good contrast.
cloudmark – Visuals are crisp and layout looks modern and polished.
bestchoiceonline – Checkout felt simple and secure, confidence inspiring.
nextbrand – Lots of useful info, clearly organized and easy to parse.
digitalstorm – Colors and contrast are well balanced, pleasant to look at.
everythingyouneedtoknow – Navigation is well-thought, found deep info without confusion.
discoveramazingthingsonline – Typography is readable, images attract attention without overwhelming.
explorecreativeideasdaily – Color palette is refreshing, helps keep me motivated while browsing.
nextbrand – Lots of useful info, clearly organized and easy to parse.
digitalstorm – The voice feels authentic, technical without being overwhelming.
everythingyouneedtoknow – Pages load fast, no waiting even on image-heavy content.
discoveramazingthingsonline – Typography is readable, images attract attention without overwhelming.
ultrawave – Color choices work well, read-ability is excellent throughout.
explorecreativeideasdaily – Visuals are engaging, complement the creative topics perfectly.
globalreach – Very intuitive to explore, links make sense and are easy to find.
digitalstorm – The voice feels authentic, technical without being overwhelming.
everythingyouneedtoknow – Tone is friendly but authoritative, good balance for trust.
discoveramazingthingsonline – Really love the name, sounds exciting and adventurous.
yourbrandzone – Feels professional yet friendly, not overly formal.
pixelplanet – Colors and typography complement each other nicely, very readable.