| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| README.md | 2026-03-22 | 9.9 kB | |
| polymarket-leaderboard-wordpress-v3_5_1.zip | 2026-03-22 | 30.9 kB | |
| Totals: 2 Items | 40.8 kB | 5 |
Polymarket Leaderboard for WordPress
Embed a live Polymarket top-wallet leaderboard on any WordPress page with a single shortcode. Pulls the top 10 traders ranked by 30-day or 7-day PNL from the official Polymarket API โ server-side, always fresh (no caching), and fully theme-isolated.
๐ Plugin Repositories
What it looks like
The widget renders a ranked leaderboard table with category filters, a 30D/7D period toggle, wallet addresses, PNL, volume, and action buttons โ in either a clean White or rich Navy Blue theme.
| Feature | Desktop | Mobile |
|---|---|---|
| Leaderboard | Full table with rank badges | Card layout |
| Wallet of the Day | Performance breakdown card | Stacked layout |
| Compare Tool | Side-by-side with bar charts | Single column |
| Period Toggle | 30D / 7D switch in controls bar | Same |
Features
๐ Leaderboard
- Live top-10 Polymarket wallets ranked by PNL
- 30D / 7D toggle โ switch between 30-day and 7-day best wallets directly on the widget
- Category filters โ All, Politics, Crypto, Sports, Culture, Tech, Finance, Macro
- Wallet address copy, X (Twitter) profile links, verified badges
- Why-badge: auto-generated insight per wallet (PNL/Vol ratio, rank context)
- Zero first-paint spinner โ data seeded server-side on page load
๐จ Themes
- White (default) โ clean light design, reads perfectly on any background
- Navy Blue โ dark gradient background (#06122a โ #091c3d) with white text; all elements fully adapted for contrast and readability (tables, cards, filters, compare tool, loading states)
- Theme is chosen in Settings โ Polymarket LB and applied globally to all shortcode instances
โญ Wallet of the Day (optional)
- Spotlights the #1 ranked wallet with a full dark-card performance breakdown
- Auto-generated analysis adapts to the currently selected time period (30D or 7D)
- Share to X button pre-filled with wallet stats
- One-click wallet address copy
โ๏ธ Wallet Compare Tool (optional)
- Side-by-side comparison of any two wallets from the current leaderboard
- Metrics: PNL, volume, PNL/volume efficiency ratio, rank
- Visual bar charts for at-a-glance comparison
- Verdict summary with winner and efficiency analysis
๐ก๏ธ Technical
- No caching โ always fetches fresh data from the Polymarket API on every request
- Server-side AJAX proxy โ all API calls go through
admin-ajax.php, zero CORS issues on any host - Theme-isolated CSS โ scoped under
#ttg-lb-rootwith ID-level specificity; your theme cannot break the widget, and the widget cannot break your theme - Pure vanilla JS โ no jQuery, no external JS dependencies
- Falls back to anonymised demo data if the Polymarket API is unreachable
- WCAG AA contrast on all PNL colour values (both themes)
- Bulletproof layout on mobile (card view) and desktop (table view) in both themes
Quick Start
Place the shortcode on any page or post:
[polymarket_leaderboard]
Pre-select a default category on load:
[polymarket_leaderboard category="CRYPTO"]
Valid categories: OVERALL ยท POLITICS ยท SPORTS ยท CRYPTO ยท CULTURE ยท ECONOMICS ยท TECH ยท FINANCE
Installation
- Download the latest zip from the repositories listed above
- In WordPress Admin: Plugins โ Add New โ Upload Plugin โ upload the zip
- Activate the plugin
- Add
[polymarket_leaderboard]to any page - Visit Settings โ Polymarket LB to:
- Choose your widget theme (White or Navy Blue)
- Enable the optional Wallet of the Day and Compare Tool
How It Works
Page load
โโโ shortcode seeds fresh data server-side (window.TTG_SEED, 30D)
โโโ no spinner on first paint
Period toggle click (30D โ 7D)
โโโ AJAX โ admin-ajax.php โ Polymarket API (timePeriod=MONTH|WEEK)
โโโ fresh data always, no cache
Category filter click
โโโ AJAX โ admin-ajax.php โ Polymarket API
โโโ fresh data always, no cache
โโโ falls back to demo data on error
The Polymarket API endpoints used:
GET https://data-api.polymarket.com/v1/leaderboard
?limit=10&offset=0&timePeriod=MONTH&orderBy=PNL&category=OVERALL โ 30D
GET https://data-api.polymarket.com/v1/leaderboard
?limit=10&offset=0&timePeriod=WEEK&orderBy=PNL&category=OVERALL โ 7D
Full spec: docs.polymarket.com
Admin Settings
Settings โ Polymarket LB lets you:
- Choose Widget Theme โ White or Navy Blue
- Enable / disable Wallet of the Day
- Enable / disable Wallet Compare Tool
- View API & shortcode usage reference
Privacy
This plugin fetches public data from https://data-api.polymarket.com only. No visitor data is collected, stored, or transmitted. No tracking pixels, no analytics, no beacons.
Changelog
3.4.7 โ Compare Accordion Centring
- Fix: balance icon + both text lines now centred horizontally as a group on desktop and mobile; chevron pinned absolutely to right edge so it doesn't affect the centring
3.4.6
- Fix: Compare accordion toggle-left
align-items:flex-startso icon and text lines anchor at top edge on desktop
3.4.5
- Fix: Compare accordion text always stacks vertically on all themes โ
display:block!importanton both lines prevents WordPress theme overrides from collapsing them into one row
3.4.4 โ WOTD Analysis Full Width & Compare Text Fix
- Fix: "Why this wallet leads today" box moved outside the
1fr/autogrid โ now spans full width below the name/stats/buttons row on desktop - Fix: Compare accordion text replaced
<strong>/<span>(subject to WP theme padding/indent) with plain<div>elements โ zero theme interference
3.4.3 โ Table Row Colour Fix & Bigger Text
- Fix: First-row background bleed eliminated โ switched from
border-collapse:separate+border-spacingtoborder-collapse:collapsewithborder-bottomdividers; no WP theme background can leak through row gaps - Improvement: Table text sizes increased โ wallet name, PNL, volume 13px โ 15px; address/headers 11px โ 12px; row padding increased
3.4.2 โ Compare Accordion Alignment
- Fix: "Side-by-side wallet comparison" and "Pick any two wallets" lines vertically aligned โ explicit
margin,padding,text-indentresets on text wrapper
3.4.1 โ Bug Fixes & Polish
- Fix: Table header blue/white split on desktop โ
background:transparent!importantonthead tr,tbody,tfoot - Fix: 7D volume always $0 โ PHP
normalise()now triesvol โ volume โ tradedAmount โ notional; JS showsโwhen volume is absent - Fix: Share on X on Wallet of the Day โ desktop copy sits under wallet address; mobile copy stays in header; both hrefs updated by JS
- Fix: 30D/7D toggle + Refresh block centred on mobile
- Fix: Navy Blue theme โ
border-radius:20px, 32px side padding,box-shadowso widget sits as a rounded card; mobile 14px radius / 16px padding
3.4.0 โ Themes, 7D Toggle & Live API
- New: White / Navy Blue theme selector in Settings โ Polymarket LB; all CSS fully adapted for navy dark background โ tables, cards, controls, filter pills, compare tool, loading states, WCAG AA on all text
- New: 30D / 7D period toggle on the widget controls bar โ switches between MONTH and WEEK timePeriod; affects leaderboard, WotD analysis text, compare labels, and all card stat labels
- No caching โ removed all transient caching; every API request is now live and fresh
- Admin page redesigned: live API status badge, theme picker card with visual swatches
3.3.2 โ Theme Isolation & UI Redesign
- Complete CSS rewrite โ all styles scoped under
#ttg-lb-rootwith ID-level specificity - Heading
::before/::afterpseudo-elements suppressed - Action buttons redesigned: View Profile (deep navy) and โก CopyTrade (vivid indigo)
- WCAG AA compliance on PNL positive colour
3.3.0 โ 3.0.0
- Renamed repository to
polymarket-leaderboard-wordpress - Setup wizard covers Wallet of the Day and Compare Tool
- Slug renamed for WP.org guideline compliance
- Initial release: proxy, cache, filters, WOTD, compare, mobile cards
Related
License
GPL-2.0+ โ free to use, modify, and redistribute.
