
內容簡介
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<p>這個「最佳目錄」外掛讓您能夠自動為您的文章和頁面建立一個最受歡迎的目錄。此外,它會掃描您的內容的標題(H1-H6),並生成帶有連結的嵌套目錄,使您的內容更有組織且更適合讀者閱讀。</p>
<h2>問題與答案:</h2>
<ul>
<li>
<h3>功能</h3>
<ul>
<li>自動使用您的標題(H1-H6)生成目錄。</li>
<li>提供可自訂的 [btoc] 短碼。</li>
<li>使用排除屬性可排除特定標題。</li>
<li>為您的標題添加 ID,以實現平滑捲動。</li>
<li>提供小工具,可將目錄顯示在側邊欄或任何小工具區域。</li>
</ul>
</li>
<li>
<h3>用法</h3>
<ul>
<li><strong>短碼:</strong>使用 [btoc] 短碼在您的內容中顯示目錄。</li>
<li><strong>範例:</strong> <code>[btoc exclude="Introduction,Conclusion"]</code>,這將排除帶有「Introduction」和「Conclusion」文本的標題。</li>
<li><strong>小工具:</strong>前往外觀 > 小工具,將「目錄」小工具添加到您想要的小工具區域。選擇性地,為小工具提供標題。</li>
</ul>
</li>
<li>
<h3>授權</h3>
<ul>
<li>此外掛授權為 GPL-2.0+ 授權。詳細資訊請參閱許可證文件。</li>
</ul>
</li>
</ul>
</body>
</html>
外掛標籤
開發者團隊
② 後台搜尋「Best Table Of Contents Plugin For WordPress in 2025 | BestTOC」→ 直接安裝(推薦)
原文外掛簡介
The “Best Table of Contents” plugin allows you to automatically create a top rated Table of Contents for your posts and pages. Plus, it scans your content for headings (H1-H6) and generates a nested TOC with links, making your content more organized and reader-friendly.
Features:
– Automatically generates a TOC using your headings (H1-H6).
– Provides a customizable [btoc] shortcode.
– Allows exclusion of specific headings using the exclude attribute.
– Adds IDs to your headings for smooth scrolling.
– Offers a widget to display the TOC in your sidebar or any widget area.
Usage
Shortcode:
Use the [btoc] shortcode to display the TOC in your content.
Example:
`[btoc exclude=”Introduction,Conclusion”]“`
This will exclude headings with the text “Introduction” and “Conclusion”.
Widget:
Go to Appearance > Widgets, and add the “Table of Contents” widget to your desired widget area. Optionally, provide a title for the widget.
License
This plugin is licensed under the GPL-2.0+ license. See the LICENSE file for details.
