AJAX Post Search and Filter

外掛說明

AJAX Post Search and Filter allows users to filter posts in real-time using taxonomy terms like categories, tags, or custom taxonomies. Add the filter anywhere using a simple shortcode.

Shortcode

Use this shortcode:

[post_filter post="post" taxonomy="category, test" logic="saprate" load_type="button" per_page="3"]<h3>License</h3>

This plugin is free software, released under the GPLv2 or later license.

1.1

  • Added nonce verification and user permission checks for secure AJAX requests.
  • Improved AJAX response handling and error fallback in JavaScript.
  • Optimized tax query logic with support for “AND”/”OR” filters.
  • Enhanced code structure for better maintainability.

1.2

  • Fully sanitized all AJAX input data to comply with WordPress security standards.
  • Added missing version parameters to enqueued CSS and JS to prevent browser caching issues.
  • Refactored input handling logic to pass PHPCS validation.
  • Minor code improvements for performance and readability.

安裝方式

  1. Upload the plugin to /wp-content/plugins/
  2. Activate it from the “Plugins” menu in WordPress
  3. Add the shortcode to any page/post to display the filter

常見問題集

Can I filter custom post types?

Yes! Just set the post attribute in the shortcode to your custom post type slug.

Does it support multiple taxonomies?

Yes. You can list multiple taxonomies like category, post_tag.

使用者評論

2025 年 6 月 30 日
[ajaxpose_post_filter post=”post” taxonomy=”category, test” logic=”saprate” load_type=”button” per_page=”3″]
閱讀全部 1 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈AJAX Post Search and Filter〉的開發相關工作。

參與者

將〈AJAX Post Search and Filter〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0

  • Initial release