內容簡介
此外掛會...
建立自訂文章類型 “系列”。
新增元框到特定的文章類型,以便成為該系列的一部分。
在文章上顯示目錄。可以在佈景主題自訂器中變更設定,或使用 “系列 TOC” 區塊。
自訂化
模板結構
如需覆寫外觀,請將模板檔案放在您的佈景主題目錄下。
template-parts
- series
- item.php // 目錄中的每個項目。
- list.php // 包括 item.php 重複顯示的目錄清單。
複製外掛目錄中的樣板,並進行自訂化。
專案樣板
在您的佈景主題目錄下尋找系列文章專案頁樣板,依照下列層次載入:
archive-in-series-{series-slug}.php
archive-in-series.php
archive.php
index.php
Hooks
還有許多鉤子可用。搜尋您的外掛目錄並使用 'taro_series_' 端頭,即可輕鬆找到它們 🙂
函式
查看 inludes/functions.php ,您可以找到有用的樣板標籤和函式。
外掛標籤
開發者團隊
原文外掛簡介
This plugin will..
Create a custom post type “Series”.
Add meta box to specified post types to be a part of the series.
Display TOC on post. You can change the settings in Theme Customizer or use “Series TOC” block.
Customization
Template Structure
To override look and feel, put template in your themes directory.
template-parts
- series
- item.php // Each item in TOC.
- list.php // TOC list which include item.php repeatedly.
Copy the template in plugin’s directoy and customize.
Archive Template
Archive page template of articles in series will be searched in your theme’s directory and loaded per the hierarchy below:
archive-in-series-{series-slug}.php
archive-in-series.php
archive.php
index.php
Hooks
Many hooks are also available. Search your plugin direcoty with 'taro_series_' and you can find them easily 🙂
Functions
See inludes/functions.php and you can find useful template tags and functions.
