Linux 软件免费装

List YARPP Block

开发者 MarcDK
更新时间 2026年9月24日 22:27
捐献地址: 去捐款
PHP版本: 6.5 及以上
WordPress版本: 7.0
版权: GPLv2 or later
版权网址: 版权信息

标签

Gutenberg related posts block yarpp full-site-editing

下载

2.1 1.2 1.3 1.4 1.5 2.4 2.2 2.6 1.9 2.0 2.7.1 1.8 2.5 2.7 2.7.2 3.0.0 3.1.0

详情介绍:

Displays YARPP related posts with the native Query Loop block. YARPP only provides the related post IDs, rendering is done by core blocks like Post Template, Post Featured Image and Post Title, so the layout can be styled in the Site Editor. The legacy List YARPP block is still included for existing sites. This block requires the YARPP plugin and relies on the yarpp_get_related() function. Query Loop integration Insert the YARPP Related Posts variation of the Query Loop block, or add these optional keys to the query attribute of any Query Loop block: Example: related posts followed by the latest posts without duplicates. <!-- wp:query {"queryId":1,"query":{"perPage":3,"postType":"post","inherit":false,"related":"yarpp","excludeCurrent":true,"minPosts":3}} --> <!-- wp:query {"queryId":2,"query":{"perPage":3,"postType":"post","inherit":false,"excludeCurrent":true,"excludeDisplayed":true}} --> The editor preview shows regular posts; the related posts are applied on the frontend. Legacy block features

安装:

  1. Upload the plugin files to the /wp-content/plugins/list-yarpp-block directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the 'Plugins' screen in WordPress

屏幕截图:

  • List YARPP block in the Theme Twenty-Twenty-Two
  • List YARPP block supports custom width.

更新日志:

3.1.0 3.0.0 2.7.2 2.7.1 Fix: Added missing direct WordPress package dependencies so the JavaScript lint workflow passes. 2.7 Added: Frontend block output caching with automatic invalidation on content changes. Improved: Faster latest-post queries through leaner ID-only lookups and cache priming. Improved: GitHub Actions now use dependency caching for lint, build and deployment. Fix: Renderer sanitizes stored block attributes before generating markup. Fix: Latest mode works independently from missing or insufficient YARPP related posts. 2.6 Added: Tested compatibility with WordPress 6.9 Added: Migration to block api V3. Fix: Links in the block UX are disabled. 2.5 Fix: Width of images is now 100% within the padding limits. 2.3 Fix: Image width set to auto. 2.2 Fix: Target blank broken link Fix: image width won't be saved. 2.1 1.5 1.4 1.2 1.0