Linux 软件免费装
Banner图

Portfolio Loop Filter

开发者 blumeblau
更新时间 2026年7月13日 03:35
PHP版本: 7.4 及以上
WordPress版本: 7.0
版权: GPLv2 or later
版权网址: 版权信息

标签

portfolio block gutenberg taxonomy filter query loop

下载

0.9

详情介绍:

Portfolio Loop Filter adds a dynamic block for the WordPress block editor. The block creates filter buttons from the used terms of a selected taxonomy and filters the next Query Loop block below it. The plugin is designed for block themes and portfolio grids that already use the native WordPress Query Loop block. It does not replace the Query Loop, does not register custom post types, and does not use AJAX on the frontend. The frontend script only toggles the visibility of existing Query Loop items. Typical use cases: Features:

安装:

  1. Upload the plugin files to the /wp-content/plugins/portfolio-loop-filter/ directory or install the plugin ZIP through the WordPress plugins screen.
  2. Activate the plugin through the "Plugins" screen in WordPress.
  3. Edit a page or template that contains a Query Loop block.
  4. Insert the "Portfolio Loop Filter" block directly above the Query Loop that should be filtered.
  5. Select the post type and taxonomy in the block sidebar.
  6. Save the page or template.

升级注意事项:

0.9 Initial pre-1.0 release of Portfolio Loop Filter.

常见问题:

Does this plugin create a portfolio post type?

No. It intentionally does not register custom post types or taxonomies. You can use WordPress posts, ACF-generated post types, or any other public post type that appears in the block settings.

Does the plugin replace the Query Loop block?

No. The native WordPress Query Loop block remains responsible for rendering the grid. This plugin only adds filter buttons and a small frontend script.

Can I use multiple filters on one page?

Yes. Each filter block controls the next Query Loop block below it. Use the structure "Filter, Query Loop, Filter, Query Loop" when placing multiple filterable grids on the same page.

Why do some terms not appear as buttons?

The block only renders terms that are used by published posts of the selected post type. On the frontend, buttons without a matching item in the next Query Loop are hidden automatically.

Does the frontend filtering reload the page?

No. The plugin filters existing items in the browser. It does not perform frontend AJAX requests.

更新日志:

0.9