
內容簡介
Dropndot Post Subtitle 讓您輕鬆為 WordPress 的文章、頁面及自訂文章類型添加副標題。此外掛與 Gutenberg 和 Classic Editor 無縫整合,並完全支援現代 WordPress 開發,包含 WPGraphQL 和 REST API 整合。
【主要功能】
• Gutenberg 側邊欄面板 - 方便使用的副標題欄位
• Classic Editor 支援 - 副標題欄位緊接標題後
• 自訂文章類型 - 為任何文章類型啟用副標題
• WPGraphQL 整合 - 在 GraphQL 查詢中查詢副標題
• REST API 支援 - 通過 WordPress REST API 存取副標題
• 快速編輯 - 直接從文章列表編輯副標題
外掛標籤
開發者團隊
原文外掛簡介
Dropndot Post Subtitle allows you to easily add subtitles (subheadings) to your WordPress posts, pages, and custom post types. The plugin integrates seamlessly with both Gutenberg and Classic Editor, and provides full support for modern WordPress development with WPGraphQL and REST API integration.
Features
Gutenberg Sidebar Panel – Easy-to-use subtitle field in the document sidebar
Classic Editor Support – Subtitle field appears right after the title
Custom Post Types – Enable subtitles for any post type
WPGraphQL Integration – Query subtitles in your GraphQL queries
REST API Support – Access subtitles via WordPress REST API
Quick Edit – Edit subtitles directly from the posts list
Admin Columns – See subtitles at a glance in the admin
Shortcodes – Display subtitles anywhere with [dropposu_subtitle]
Developer Friendly – Simple PHP functions for theme integration
Usage
Shortcode:
[dropposu_subtitle]
In Theme Templates:
With HTML Wrapper:
', '
'); ?>
WPGraphQL:
query {
post(id: "/my-post/", idType: SLUG) {
title
subtitle
}
}
REST API:
Access via /wp-json/wp/v2/posts/123 – response includes dropposu_subtitle field.
Developer Documentation
Functions
dropposu_subtitle( $post_id, $before, $after )
Display the subtitle.
Parameters:
* $post_id (int) – Post ID. Default: current post
* $before (string) – HTML before subtitle
* $after (string) – HTML after subtitle
get_dropposu_subtitle( $post_id, $before, $after )
Get the subtitle (returns string, does not echo).
Parameters:
* $post_id (int) – Post ID. Default: current post
* $before (string) – HTML before subtitle
* $after (string) – HTML after subtitle
Support
For support, please visit the plugin settings page or contact the developer at https://dropndot.com
