跳到内容

Dropndot Post Subtitle

v1.0.0

Dropndot Solutions · 2026年3月10日 上架

Add subtitles to posts, pages, and custom post types. Supports Gutenberg, Classic Editor, WPGraphQL, REST API, and shortcodes.

正在使用
10+
评分
暂无
累计下载
567
最近更新
2026年9月16日
需要 WordPress 6.3+已测试到 7.1.5PHP 7.4+

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:

<?php dropposu_subtitle(); ?>

With HTML Wrapper:

<?php dropposu_subtitle(0, '<h2 class="subtitle">', '</h2>'); ?>

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

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums