Mô tả
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.
Cài đặt
- Upload the plugin to
/wp-content/plugins/ - Activate it from the “Plugins” menu in WordPress
- Add the shortcode to any page/post to display the filter
Hỏi đáp
-
Can I filter custom post types?
-
Yes! Just set the
postattribute in the shortcode to your custom post type slug. -
Does it support multiple taxonomies?
-
Yes. You can list multiple taxonomies like
category, post_tag.
Đánh giá
Người đóng góp & Lập trình viên
“AJAX Post Search and Filter” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.
Những người đóng gópDịch “AJAX Post Search and Filter” sang ngôn ngữ của bạn.
Muốn tham gia phát triển?
Duyệt code, check out SVN repository, hoặc theo dõi nhật ký phát triển qua RSS.
Nhật ký thay đổi
1.0
- Initial release