W4 Post List source code

By Shazzad Hossain Khan, on WordPress.org since 2010. 3,000+ active installs.

Browse code Download zip

W4 Post List builds the lists that WordPress core still can’t: posts grouped under year, month, category or author headings; category and term indexes; user directories; and combined Terms + Posts and Users + Posts lists. Below is its source code for every one of its 60 releases, what changed in the latest one, and how often it ships.

What changed in 3.1.2

Released Nov 25, 2026, 1 hour after 3.1.1
  • Fix: Video, audio and map embeds stored in a custom field show again in [post_meta], [user_meta] and [post_author_meta]. 3.1.1 removed every iframe; iframes from YouTube, Vimeo, Dailymotion, Wistia, Loom, Spotify, SoundCloud and Google Maps are kept now. Developers can add embed sources with the w4pl/meta_iframe_src_prefixes filter.

5 files changed since 3.1.1: 5 modified, 0 added, 0 removed.

Compare 3.1.1 with 3.1.2

Release history

60 releases since December 2010
  1. 3.1.2 Nov 25, 2026 Fix: Video, audio and map embeds stored in a custom field show again in [post_meta], [user_meta] and [post_author_meta]. 3.1.1 removed every iframe; iframes from YouTube, Vimeo, Dailymotion, Wistia, Loom, Spotify, SoundCloud and Google Maps are kept now. Developers can add embed sources with the w4pl/meta_iframe_src_prefixes filter.
  2. 3.1.1 Nov 25, 2026 Improved: Custom field values printed by [post_meta], [user_meta] and [post_author_meta], and custom-field group titles, follow the same HTML rules as post content. Developers can adjust this with the w4pl/meta_display_value filter.
  3. 3.1.0 Nov 6, 2026 Improved: A list’s CSS and JavaScript print in the same place as before but through WordPress’s own style and script API, so on WordPress 6.3+ a CSP plugin’s nonce covers the list’s script and developers can read a list’s CSS and JavaScript from wp_styles() / wp_scripts() under the handle w4pl-list-{id}.
  4. 3.0.9 Oct 2, 2026 Fix: AJAX pagination keeps the list’s page when visitors go Back, Forward or reload. Each page is recorded in the address bar, so a visitor who opens a post and comes back lands on the page they were reading.
  5. 3.0.8 Sep 24, 2026 New: Groups can be ordered by name. A new “Group Order by” option (ID or Name) sits next to Group Order, so a category, year, author or custom-field grouping can sort alphabetically instead of by the order the terms were created. Existing lists keep ordering by ID.
Full W4 Post List changelog with diffs

Source of 3.1.2

91 files
Browse all W4 Post List 3.1.2 files Browse trunk