Download Latest Version polymarket-leaderboard-wordpress-v3_5_1.zip (30.9 kB)
Email in envelope

Get an email when there's a new version of Polymarket Leaderboard WordPress Plugin

Home
Name Modified Size InfoDownloads / 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.

License: GPL v2 Version WordPress PHP

β†’ Live Demo

Polymarket Leaderboard WordPress Plugin


πŸ”— Plugin Repositories

Host URL
GitLab gitlab.com/telegramtrading-polymarket-wordpress/polymarket-leaderboard-wordpress-plugin
SourceForge sourceforge.net/projects/polymarket-wordpress
GitHub github.com/telegramtradingnet/polymarket-leaderboard-wordpress-plugin
Codeberg codeberg.org/telegramtrading/polymarket-leaderboard-wordpress

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-root with 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

  1. Download the latest zip from the repositories listed above
  2. In WordPress Admin: Plugins β†’ Add New β†’ Upload Plugin β€” upload the zip
  3. Activate the plugin
  4. Add [polymarket_leaderboard] to any page
  5. Visit Settings β†’ Polymarket LB to:
  6. Choose your widget theme (White or Navy Blue)
  7. 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-start so 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!important on 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/auto grid β€” 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-spacing to border-collapse:collapse with border-bottom dividers; 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-indent resets on text wrapper

3.4.1 β€” Bug Fixes & Polish

  • Fix: Table header blue/white split on desktop β€” background:transparent!important on thead tr, tbody, tfoot
  • Fix: 7D volume always $0 β€” PHP normalise() now tries vol β†’ 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-shadow so 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-root with ID-level specificity
  • Heading ::before/::after pseudo-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


License

GPL-2.0+ β€” free to use, modify, and redistribute.

Source: README.md, updated 2026-03-22