| 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 | 6 |
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.
