Linux 软件免费装
Banner图

Portfolio Loop Filter

开发者 blumeblau
更新时间 2026年9月17日 23:36
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

portfolio block gutenberg taxonomy filter query loop

下载

0.9 1.0

详情介绍:

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 Query Loop items that are already rendered on the page. 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. Choose the desired filter button order and optional styling settings.
  7. Save the page or template.

升级注意事项:

1.0 Adds configurable filter button ordering and updates compatibility for WordPress 7.1.

常见问题:

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.

How are filter buttons sorted?

You can sort taxonomy filter buttons alphabetically from A-Z, alphabetically from Z-A, or manually. In manual mode, use the arrow controls in the block sidebar to set the order. The optional "All" button always remains first.

What happens when I add a new taxonomy term while using manual ordering?

Newly used terms are appended after the saved manual order, so they remain visible without requiring the block to be recreated. You can then move them to the desired position in the editor.

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.

Does filtering load posts from other Query Loop pagination pages?

No. Filtering applies only to items already rendered in the targeted Query Loop on the current page. The plugin does not change the Query Loop query or fetch additional paginated posts.

更新日志:

1.0 0.9