[WordPress] 外掛分享: LuckyWP Table of Contents

WordPress 外掛 LuckyWP Table of Contents 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「LuckyWP Table of Contents」是 2018-11-13 上架。 目前已經下架不再更新,不建議安裝使用。
  • 目前有 100000 個安裝啟用數。
  • 上一次更新是 2022-03-21,距離現在已有 1140 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 4.7 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 5.6.20 以上。
  • 有 820 人給過評分。
  • 論壇上目前有 2 個提問,問題解答率 0%

外掛協作開發者

theluckywp |

外掛標籤

seo | toc | links | navigation | table of contents |

內容簡介

ptoc] used to manually insert the table of contents.

Filters lwptoc_settings, lwptoc_post_settings

Use for change plugin settings programmatically.

Example:

add_filter('lwptoc_settings', function ($settings) {
$settings['minimum_heading_count'] = 3;
return $settings;
});

add_filter('lwptoc_post_settings', function ($settings, $post_id) {
$settings['show_toggle'] = false;
return $settings;
}, 10, 2);

Action lwptoc_after_output

Use for add custom HTML code after the table of contents output.

Example:

add_action('lwptoc_after_output', function () {
echo '

Custom HTML code.

';
});

原文外掛簡介

Creates SEO-friendly table of contents for your posts, pages or custom post types. Great customizable appearance.
Features

Automatical insertion a table of contents (configure post types and position).
SEO-friendly: table of contents code is ready to use by Google for snippets on result page.
Insert by shortcode, Gutenberg block or widget.
Button on toolbar of the classic editor.
Gutenberg block into “Common Blocks”.
Setting the minimum number of headings to display table of contents.
Setting the depth of headings for table of contents.
Skip headings by level or text.
Hierarchical or linear view.
Numeration items: decimal or roman numbers in order or nested.
Customizable appearance: width, float, title font size and weight, items font size, colors.
Color schemes (dark, light, white, transparent, inherit from theme) and the ability to override colors.
Toggle Show/Hide (optionally)
Customizable labels.
Smooth scroll (optionally).
Setting offset top for smooth scroll.
Wrap table of contents with tag (optionally).
Pretty hash in URL (like example.com/faq/#how_do_this).
RTL support.
Available override global settings for a particular post.
Highly compatible with WordPress themes and plugins.

Auto Insert
For automatical insertion a table of contents in a posts, select option “Auto Insert Table of Contents” in the plugin settings (tab “Auto Insert”).
Supported positions:

before first heading;
after first heading;
after first block (paragraph or heading);
top of post content;
bottom of post content.

You can also select post types to which the table of contents will be automatically added.
Manual Insert
For manual insertion a table of content in a posts, use one of the ways:

button “Table of Contents” on toolbar in classic editor;
gutenberg block “Table of Contents”;
shortcode [lwptoc].

Pretty hash in URL
By default, hash generated as heading text (for example, #How_Do_This). You can change hash format in global settings, tab “Misc.”.
For non-English websites it is recommended to enable the Intl PHP extension.
Compatibility
LuckyWP Table of Contents was successfully tested with the following plugins:

Elementor Page Builder
Beaver Builder and Beaver Builder Themer Add-On
WPBakery Page Builder
Oxygen
WordPress Multilingual Plugin (WPML), officially confirmed
Rank Math, officially confirmed
WP Rocket
Toolset Views and Toolset Access

Hooks
Filters lwptoc_before, lwptoc_after
Use for add custom HTML before/after the table of contents.
Example:
add_filter('lwptoc_before', function ($before) {
return '

Example text before TOC.

' . $before;
});

Filter lwptoc_shortcode_tag
Use this filter for change shortcode tag name [lwptoc].
Example:
add_filter('lwptoc_shortcode_tag', function ($tag) {
return 'toc';
});

Filter lwptoc_heading_id
Use for modify heading ID.
Example:
add_filter('lwptoc_heading_id', function ($id, $label) {
return $id;
}, 10, 2);

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「LuckyWP Table of Contents」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.4 | 1.5 | 1.6 | 1.7 | 1.8 | 1.9 | 2.0 | 2.1 | 1.0.0 | 1.0.1 | 1.0.2 | 1.0.3 | 1.0.4 | 1.1.0 | 1.1.1 | 1.2.0 | 1.2.1 | 1.2.2 | 1.3.0 | 1.3.1 | 1.4.1 | 1.5.1 | 1.5.2 | 1.5.3 | 1.5.4 | 1.5.5 | 1.5.6 | 1.5.7 | 1.6.1 | 1.9.1 | 1.9.2 | 1.9.3 | 1.9.4 | 1.9.5 | 1.9.6 | 1.9.7 | 1.9.8 | 1.9.9 | 2.0.1 | 2.0.2 | 2.0.3 | 2.0.4 | 2.0.5 | 2.0.6 | 2.0.7 | 2.0.8 | 2.0.9 | 2.1.1 | 2.1.2 | 2.1.3 | 2.1.4 | trunk | 1.9.10 | 1.9.11 |

延伸相關外掛(你可能也想知道)

  • Broken Link Checker 》Broken Link Checker 監控並測試網站內部和外部的所有連結,尋找失效連結。它可以幫助您修復錯誤的連結,以提高 SEO 和用戶體驗。, 功能, , 監視文章、頁面、...。
  • Velvet Blues Update URLs 》如果你把你的 WordPress 網站移到新的網域名稱,你會發現內部頁面連結和圖片參照沒有被更新,還是指向原本的舊網域名稱。這個外掛可以幫助你更改網站中的舊連...。
  • Export All URLs 》此外掛將會在「工具」下新增一個名為「匯出所有網址」的頁面。您可以前往該頁面,並從您的網站中提取資料。可以匯出以下文章內容:, , 文章 ID, 標題, 網址, ...。
  • Gallery Custom Links 》Gallery Custom Links 可讓您將相片連結到指定的 URL。已經過 WordPress 相片集、Gutenberg、Meow Gallery 等等的測試。官方網頁在這裡:Gallery Custom Link...。
  • External Links in New Window / New Tab 》這個外掛可以在新分頁或新視窗中開啟外部連結。您可以設定強制開啟新視窗的網址或忽略某些連結不開啟新分頁。, 此外掛程式產生的代碼符合 XHTML Strict 規範...。
  • Link Whisper Free 》你有興趣使用更快速、更容易的方式建立內部連結嗎?如果是的話,Link Whisper 是一款能夠幫助你獲得強大內部連結價值,而無需手動建立的工具。, 小建議,大效...。
  • Link Manager 》在 WordPress 3.5 中,預設會停用連結管理員 (有些人用它建立 blogrolls)。如果您在更新時有連結,它仍會存在。, 但您可以使用此外掛來確保它永遠存在,即使...。
  • AutoConvert Greeklish Permalinks 》AutoConvert Greeklish Permalinks可以將所有持久化鏈結中的希臘字母轉換為拉丁字母。此外,該外掛程序確保每個新的持久化鏈結都是使用希臘拉丁字母書寫,並...。
  • Title and Nofollow For Links (Classic Editor) 》這個外掛程式在插入連結彈出框中恢復了 WordPress 4.2 中刪除的「Title」欄位,並新增了一個「將連結加上 rel="nofollow"」的勾選框。, Gutengerg(區塊編輯...。
  • Link Juice Keeper 》錯誤 404 ( 找不到頁面 ) 很常見,也是造成搜尋引擎,例如 Google,把網站排名降低的主要原因之一。處理 404 錯誤對於非技術人員來說可能相當複雜。有了這個...。
  • Events Tracker for Elementor 》這是一個簡單而極其有用的 Elementor 外掛,可以讓您追蹤與您喜愛的頁面建構器建立的網站上的事件和轉換。您只需要開啟必要的切換按鈕,就可以做好了 😎, ✅ ...。
  • Disable Author Archives 》這是一個簡單輕量的 WordPress 外掛,可以完全停用作者存檔/頁面(無論相應的作者是否存在),並使網頁伺服器返回404狀態碼('未找到')。相關連結也將禁用或...。
  • Interlinks Manager – Internal Links Optimizer 》Interlinks Manager 是一款能夠協助監測和優化內部連結的 SEO WordPress 外掛。, 該外掛利用強大的 PHP 正則表達式來生成內部連結數據,然後進行分析,為您提...。
  • Automatic Domain Changer 》這個外掛可以自動偵測網域名稱更改,並更新數據庫中的 WordPress 表格來反映這個更改。, 功能, , 輕鬆地將 WordPress 網站從一個網域遷移到另一個網域, 同時...。
  • No External Links 》Mihdan: No External Links 可以將外部鏈結轉換為內部鏈結。該外掛具有全頁面或定向內容篩選、自定義重新導向頁面/訊息、編碼遮罩、外部鏈結點擊紀錄、個別鏈...。

文章
Filter
Apply Filters
Mastodon