Contributors: hametuha, Takahashi_Fumiki
Tags: faq,help
Tested up to: 7.0
Stable Tag: 1.0.4
License: GPL 3.0 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
FAQ template plugin by Hametuha.
This plugin add new custom post type 'FAQ'. With some functionality, you can build help center for your user. What is help center? We collect examples at our github wiki.
This plugin will provide...
- Custom post type with single page and archive page.
- Custom taxonomy associated to CPT.
- Incremental search box.
- AI Overview(Since 2.0.0)
AI Overview answers user questions based on your FAQ content using a large language model. It uses the wp-ai-client bundled with WordPress core since WordPress 7.0, which requires an AI service to be configured in WordPress.
Requirements: AI Overview requires WordPress 7.0 or later. On older WordPress versions, the AI Overview block and template function will still appear in the editor and on the front-end, but the search form will not work (the REST endpoint that powers it is disabled). Other features of this plugin (FAQ custom post type, incremental search, shortcode) continue to work on WordPress 6.6+. Upgrade WordPress to 7.0 to enable AI Overview.
You can configure AI behavior and rate limiting from Settings > Hamelp in the admin panel. The settings page also includes a Rebuild Catalog Now button to manually refresh the FAQ catalog used as LLM context.
Add the AI FAQ Overview block in the block editor. The block has the following options:
- Placeholder — Input placeholder text.
- Button Text — Submit button label.
- Show Sources — Display related FAQ links below the answer.
You can also use hamelp_render_ai_overview() in your theme templates:
<?php echo hamelp_render_ai_overview(); ?>
The function accepts an optional array of arguments:
<php
echo hamelp_render_ai_overview( [
'placeholder' => 'Ask a question...',
'button_text' => 'Ask AI',
'show_sources' => true,
] );
?>
The function automatically enqueues the required JavaScript and CSS assets.
The incremental FAQ search box is available in three forms.
Add the FAQ Search Box block in the block editor. The block has the following options:
- Label — Input placeholder text.
- Button Text — Submit button label.
You can use shortcode hamelp-search in page content.
[hamelp-search label='Enter your question here.'][/hamelp-search]
You can also call hamelp_render_search_box() directly from your theme templates:
<?php echo hamelp_render_search_box( [
'label' => 'Enter your question here.',
'btn' => 'Search',
] ); ?>
Install itself is easy. Auto install from admin panel is recommended. Search with hamelp.
- Donwload and unpack plugin file, upload
hamelpfolder to/wp-content/pluginsdirectory. - Activate it from admin panel.
You can contribute to our github repo. Any issues or PRs are welcomed.
- Add FAQ Search Box block (
hamelp/search-box). The existing[hamelp-search]shortcode continues to work and now shares the same render logic. - Expose
hamelp_render_search_box()as a public template function so themes can render the search box without going through the shortcode parser.
- Remove bundled wp-ai-client Composer dependency. AI Overview now uses the wp-ai-client bundled with WordPress core, which requires WordPress 7.0 or later.
- On WordPress versions earlier than 7.0, the AI Overview block and search form still render but submissions fail (no REST route). FAQ custom post type, incremental search, and other features remain functional.
- Auto-rebuild the FAQ catalog on plugin activation, so the AI Overview works out of the box without manually running
wp hamelp rebuild. - Add a Rebuild Catalog Now button to the settings page for manual catalog refresh.
- Add user context to AI Overview for personalized responses.
- Add whitelist-based user role filtering for security (
hamelp_allowed_user_rolesfilter). - Add
hamelp_user_contextandhamelp_display_user_rolesfilters for customization. - Add development hooks support for local environment testing.
- Remove bundled translations in favor of GlotPress (WordPress.org).
- Add AI Overview Feature.
- Bump minimum requirements: PHP >=7.4, WordPress >= 6.6
- Add structured data for FAQPage.
- Bugfix and change glocal functions.
- Fix taxonomy to be shown in Gutenberg.
- Fix no vendor directory bug.
- Initial release.