
內容簡介
這個外掛新增了一個自訂文章類型 ‘FAQ’。並且提供一些功能,讓您能夠建立一個使用者的說明中心。
什麼是說明中心?詳細資訊請至我們的 github wiki 查看範例。
建立入口
這個外掛提供了以下功能:
自訂文章類型,包括單獨頁面和文章專區。
自訂分類與自訂文章類型相關聯。
增值搜尋方塊。
您可以在頁面內容中使用簡碼 hamelp-search。
[hamelp-search label='在此輸入您的問題。'][/hamelp-search]
您也可以在主題中自行呼叫。
<?php echo do_shortcode( '[hamelp-search][/hamelp-search]' ) ?>
外掛標籤
開發者團隊
原文外掛簡介
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.
Creating Portal
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
AI Overview answers user questions based on your FAQ content using a large language model.
It uses wp-ai-client (experimental) bundled via Composer, which requires an AI service to be configured in WordPress. Since wp-ai-client is still experimental, its API may change in future releases.
You can configure AI behavior and rate limiting from Settings > Hamelp in the admin panel.
Using the Block
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.
Using the Template Function
You can also use hamelp_render_ai_overview() in your theme templates:
The function accepts an optional array of arguments:
'button_text' => 'Ask AI',
'show_sources' => true,
] );
?>
The function automatically enqueues the required JavaScript and CSS assets.
Search Box
You can use shortcode hamelp-search in page content.
[hamelp-search label='Enter your question here.'][/hamelp-search]
And you can call in your theme altenatively.
