
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.
[dropposu_subtitle]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.
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
For support, please visit the plugin settings page or contact the developer at https://dropndot.com