[WordPress] 外掛分享: Simple Subtitles

前言介紹

  • 這款 WordPress 外掛「Simple Subtitles」是 2016-04-10 上架。
  • 目前有 30 個安裝啟用數。
  • 上一次更新是 2016-05-10,距離現在已有 3280 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 3.5 以上版本才可以安裝。
  • 有 1 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

aware | desrosj | linchpin_agency |

外掛標籤

subtitles |

內容簡介

Simple Subtitles 在文章、頁面或自訂文章類型上新增一個欄位,供您新增副標題。您可以在撰寫設定中啟用/停用文章類型。

插件中有幾個函數可讓您輕鬆地取得不同內容的副標題。這些函數反映了標題核心中的函數。

如果要在您自己的佈景主題中顯示副標題,請使用以下過濾器:
function mytheme_disable_subtitle_display( $show ) {
return false;
}
add_filter( 'simple_subtitle_auto', 'mytheme_disable_subtitle_display' );
?>

預設情況下,副標題僅允許使用
標記(僅限於 class 和 style 屬性)。有一個過濾器可以完成此項作業。
function mytheme_simple_subtitle_allowed_html( $allowed ) {
$allowed['strong'] = array();
$allowed['div'] = array(
'class' => true,
);

return $allowed;
}
add_filter( 'simple_subtitle_allowed_html', 'mytheme_simple_subtitle_allowed_html' );

?>

詳細資訊,請閱讀關於wp_kses 函式。

取得副標題

顯示當前文章的副標題。應在循環內使用。

為在 HTML 屬性中使用而取得副標題
$args = array(
'before' => '',
'after' => '',
'echo' => true
);
$subtitle = the_simple_subtitle_attribute( $args );
?>

路線圖

* 在管理區新增一欄以顯示副標題。
* 新增一個設定項目,以選擇副標題 HTML 標記。

原文外掛簡介

Simple subtitles adds a field on posts, pages, or custom post types for adding a subtitle. Post types can be enabled/disabled in the writing settings section.
There are several functions in the plugin that allow you to easily get subtitles for different contexts. These functions mirror the functions in core for titles.
If you want to display the subtitle in your theme on your own, use the following filter:

By default, only tags are allowed in subtitles (with only class and style attributes). There is a filter this.
true,
);

return $allowed;
}
add_filter( 'simple_subtitle_allowed_html', 'mytheme_simple_subtitle_allowed_html' );

?>

For more info on this, read into the wp_kses functions.
Get the subtitle.

Display the current post’s subtitle. Should be used within the loop.

Get the subtitle for use in an HTML attribute.
'',
'after' => '',
'echo' => true
);
$subtitle = the_simple_subtitle_attribute( $args );
?>

Roadmap

* Add a column in the admin showing subtitles.
* Add a setting for selecting the subtitle HTML tag.

各版本下載點

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

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


2.0 | 2.1 | 2.1.1 | trunk |

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

  • Subtitles 》現在 WordPress 目前沒有簡單的方法供網站發布者在他們的文章、頁面和其他自訂文章類型中添加副標題。這讓使用者和開發者陷入困境,試圖找出如何以美觀和合理...。
  • Widget Subtitles 》這個外掛會在所有小工具中新增一個副標題輸入欄位。您還可以更改副標題的位置,甚至使用過濾器變更副標題的輸出方式。, 過濾器, , widget_subtitles_element,...。
  • Wubtitle 》線上影片轉文字解決方案,提升 SEO 表現, Wubtitle 是能夠在 WordPress 中輕鬆處理影片轉文字任務的多功能外掛。透過自動字幕製作及轉譯短片,或即時將 Youtu...。
  • Accessible Video Library 》Accessible Video Library 解決了 WordPress 中的一個問題:管理影片以及與每個影片相關的關鍵媒體,包括字幕、檔案轉錄和字幕。, 在 WordPress 3.6 中,Word...。
  • Themes4WP YouTube External Subtitles 》使用 Themes4WP Youtube External Subtitles,您可以在網站上的 YouTube 影片上顯示字幕(包括字幕、文字、評論或歌詞)。, 透過這個簡短代碼,您可以在YouTu...。
  • WP Amara Shortcode 》這是一個簡單的 WordPress 外掛,可啟用 Amara.org shortcode。, 使用方法, 在您想要顯示裝有字幕的影片的頁面內容中插入 [amara url=http://URL/OF/VIDEO](...。
  • Post Promoter Pro – Subtitles 》Post Promoter Pro – Subtitles 是一個外掛程式,其主要功能是為了支援由 Phillip Arthur Moore 開發的免費 Subtitles 插件 (https://wordpress.org/pl...。

文章
Filter
Apply Filters
Mastodon