Linux 软件免费装
Banner图

W4 Post List

开发者 sajib1223
更新时间 2026年8月6日 05:16
PHP版本: 7.4 及以上
WordPress版本: 7.0
版权: GPLv3
版权网址: 版权信息

标签

shortcode post list post grid category list user list

下载

2.5.8 1.2.1 1.4.1 2.0 1.2.7 1.3 1.3.1 1.3.2 1.3.3 1.3.4 1.4.8 1.5.4 1.5.8 1.6 1.6.2 1.7 1.7.7 1.8.5 1.9.2 1.9.8 2.0.6 2.1.4 2.2.0 2.3.0 1.2.5 2.1.8 1.2 1.0 1.1 3.0.0 1.4 2.4.8 1.2.3 2.4.6 2.5.0 2.5.1 2.5.2 2.5.3 2.5.4 1.2.6 2.4.9.1 2.5.5 2.5.9 2.7.0 2.11.0 2.5.6 2.5.7 2.8.0

详情介绍:

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) + 文章设置 and 用户 + Posts lists. You control the output with a template of plain HTML and simple template tags, so the markup stays clean, semantic and completely yours. Place any list anywhere with the W4 Post List block, the [postlist id="123"] shortcode, or the classic widget. What can you build? Five list types Query options (Posts) Group results by Order results by Pagination Full control over the output Output is template-driven: every list has an HTML template with template tags like [post_title], [post_permalink], [featured_image], [post_author_name] and [post_meta key="..."]. Start from a ready-made template — cards, archives, category indexes, user directories — and tweak it, or write your own markup for pixel-perfect control. A live preview in the editor shows your changes before you save. If you want a drag-and-drop visual builder, this plugin isn't that — it keeps you close to your own HTML, which is exactly why themes and developers like it. See the full template tag reference and live examples with copy-paste templates. Lightweight, independently measured WP Hive independently measures W4 Post List at 19 KB memory usage and +0.05 s page-speed impact — better than 99% of the plugins they test. No bundled frameworks, no frontend bloat.

安装:

  1. Install from Plugins → Add New (search for "W4 Post List"), or upload the zip to /wp-content/plugins/.
  2. Activate the plugin through the Plugins menu.
  3. Find the W4 Post List menu (list icon) in your admin sidebar. Create a list, publish it, then place it on any page with the W4 Post List block or the [postlist id="123"] shortcode.

屏幕截图:

  • The template editor — syntax highlighting, tag insertion, editable starter markup.
  • Live preview — see your unsaved changes rendered without leaving the editor.
  • Thumbnail cards starter on the front end.
  • Year archive starter — posts grouped under year headings.
  • User directory starter — avatars, names and bios in a card grid.
  • Helpful save-time warnings — mistakes are explained and coerced, never rejected.
  • Every list's shortcode is one click away.

升级注意事项:

3.0.0 AJAX pagination now works on block themes and no longer needs jQuery. Despite the major version number, nothing about your saved lists, templates or settings changes. 2.11.0 Biggest update yet: 8 starter templates with one-click apply, live preview in the editor, and save-time validation with helpful warnings. 2.10.0 Live preview in the list editor. 2.9.0 Eight ready-made starter templates with copy-on-select editing. Legacy presets unchanged. 2.8.0 Code editors for templates, copyable shortcode box, visible error notices for editors, editor stability fixes. 2.7.0 First-run onboarding (example list, get-started guide), the post_thumbnail px-dimension fix, PHP 8.2 cleanups, and automated release testing. 2.6.0 Adds automated release testing, options versioning and PHP 8.2 deprecation fixes. No changes to list output. 2.5.9 Adds a Live Preview blueprint for the wordpress.org plugin page. No functional changes. 2.5.8 Documentation fixes: examples now copy-paste correctly, new Getting Started guide, docs visible to Editors. 2.5.7 Listing and documentation accuracy update — no functional changes.

常见问题:

How do I display a list?

Three ways: add the W4 Post List block and pick your list; paste the shortcode [postlist id="123"] into any content; or add the W4 Post List widget to a widget area. Each list's ID and ready-made shortcode are shown in the Shortcode column on the All Lists screen.

How do I list posts from a specific category?

Create a Posts list, open the Posts: Tax Query section, and select your taxonomy and terms. You can combine multiple term filters, and filter by custom fields and dates the same way.

Why does my list show nothing on the page?

The usual causes, in order: the list is not Published yet; the shortcode ID doesn't match (check the Shortcode column on the All Lists screen); the template is missing its loop tags (a Posts list template needs [posts]...[/posts], Terms needs [terms]...[/terms], Users needs [users]...[/users]); or the query simply matched no items. Opening the list and re-checking the query options usually finds it.

Do I have to write the template myself?

No. Pick a layout from Start from a template in the list editor — thumbnail cards, a year archive, a category index, a user directory and more. It copies the markup and styles into the editable Template and Style fields, so you can use it as-is or adjust anything.

Can I see a list before publishing it?

Yes - the Preview button under the editor renders your current, unsaved settings, and refreshes automatically as you change options. It renders without your theme's stylesheet, so spacing and fonts will differ slightly on the real page.

Can I display custom fields (including ACF)?

Yes. Use [post_meta key="your_field_key"] inside the posts loop. Fields stored as plain values (text, numbers, URLs) work best; complex/serialized fields are output as stored.

Can I group posts by year, category or author?

Yes — that's this plugin's specialty. Set Group by to year, month, month + year, any taxonomy, author or parent, and the list renders grouped sections with headings. The core Query Loop block can't do this.

Can I list users or build an author directory?

Yes. Use the Users list type (filter by role, order by name/registration date) or Users + Posts to show each user with their latest posts. Template tags cover avatars, display names, bios and profile URLs.

Does it work with the block editor and block themes?

Yes. The W4 Post List block renders your list server-side with a live preview in the editor, and the shortcode works in classic editors, page builders and template files (echo do_shortcode( '[postlist id="123"]' );).

Where is the documentation?

In your admin: W4 Post List → Documentation (template tags reference, examples, usage). Online: w4dev.com/docs/w4-post-list.

更新日志:

3.0.0 2.11.0 2.10.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.9 2.5.8 2.5.7 2.5.6 2.5.5 2.5.4 2.5.3 2.5.1