K
by Kathy Darling
5 (18 reviews)
KIA Subtitle
The KIA Subtitle plugin allows you to add a subtitle to your posts.
Tested up to WP 6.5 (Current: 6.9)
v4.0.1
Current Version v4.0.1
Updated 1 year ago
Last Update on 24 Apr, 2024
Synced 7 hours ago
Last Synced on
Rank
#2,646
-2 this week
Active Installs
8K+
+0.2%
KW Avg Position
64
—
No change
Downloads
62.2K
+12 today
Support Resolved
0%
—
No change
Rating
100%
Review 5 out of 5
5
(18 reviews)
Next Milestone 9K
8K+
9K+
165
Ranks to Climb
-
Growth Needed
8,000,000
Active Installs
Pro
Unlock Exact Install Count
See the precise estimated active installs for this plugin, calculated from real-time ranking data.
- Exact install estimates within tiers
- Track install growth over time
- Milestone progress predictions
Need 949 more installs to reach 9K+
Rank Changes
Current
#2,646
Change
Best
#
Downloads Growth
Downloads
Growth
Peak
Upgrade to Pro
Unlock 30-day, 90-day, and yearly download history charts with a Pro subscription.
Upgrade NowReviews & Ratings
5.0
18 reviews
Overall
100%
5
18
(100%)
4
0
(0%)
3
0
(0%)
2
0
(0%)
1
0
(0%)
Tracked Keywords
Showing 1 of 1| Keyword | Position | Change | Type | Updated |
|---|---|---|---|---|
| subtitle | 64 | — | Tag | 8 hours ago |
Unlock Keyword Analytics
Track keyword rankings, search positions, and discover new ranking opportunities with a Pro subscription.
- Full keyword position tracking
- Historical ranking data
- Competitor keyword analysis
Track This Plugin
Get detailed analytics, keyword tracking, and position alerts delivered to your inbox.
Start Tracking FreePlugin Details
- Version
- 4.0.1
- Last Updated
- Apr 24, 2024
- Requires WP
- 6.1+
- Tested Up To
- 6.5
- PHP Version
- N/A
- Author
- Kathy Darling
Support & Rating
- Rating
- ★ ★ ★ ★ ★ 5
- Reviews
- 18
- Support Threads
- 0
- Resolved
- 0%
Keywords
Upgrade to Pro
Unlock keyword rankings, search positions, and detailed analytics with a Pro subscription.
Upgrade NowFrequently Asked Questions
Common questions about KIA Subtitle
The intended way is with the the_subtitle() template tag as follows: if ( function_exists( 'the_subtitle' ) ) the_subtitle(); You can wrap the string in some markup using the $before and $after parameters. if ( function_exists( 'the_subtitle' ) ) the_subtitle( '<h2 class="subtitle">', '</h2>' ); As an absolute worst case fallback you could also add the following snippet to your functions.php in order to prepend the subtitle to the content. /** * Prepend the subtitle to the post content. * * @param string $content The post content * @return string */ function kia_prepend_subtitle_to_content( $content ) { if ( ! is_admin() ) { $subtitle = function_exists( 'get_the_subtitle' ) ? get_the_subtitle() : ''; if ( ! empty( $subtitle ) ) { $content = '<h2 class="subtitle">' . wp_kses_post( $subtitle ) . '</h2>' . $content; } } return $content; } add_filter( 'the_content', 'kia_prepend_subtitle_to_content' ); You could also filter the_title and but it would have to be part of the post title's markup and could not have it's own markup as nesting header elements is invalid HTML markup. /** * Append the subtitle to the title. * * @param string $title The post title * @return string */ function kia_append_subtitle_to_title( $title ) { if ( ! is_admin() ) { $subtitle = function_exists( 'get_the_subtitle' ) ? get_the_subtitle() : ''; if ( ! empty( $subtitle ) ) { $title .= ' — ' . wp_kses_post( $subtitle ); } } return $title; } add_filter( 'the_title', 'kia_append_subtitle_to_title' );
Unfortunately, I cannot tell you exactly what file to place the above code in because 1. I don't know where you want to display the subtitle and 2. every theme's structure is different. However, in general, the_subtitle() is a template tag so you will want to put it in a template file. Probably, you are looking for the file that contains your post loop. For most themes it's single.php ( or page.php for pages ), but for many it could also be content.php. Assuming you want the subtitle to display directly after your main title, you'd place the above code after: <h1 class="entry-title"><?php the_title(); ?></h1> As an example if you wanted to display the subtitle on standard single posts, in the Twenty Twenty theme you'd create a copy of the entry-header.php template in your child theme and modify it as shown in this gist
If you have wrapped the subtitle in an H2 tag with the class of subtitle like in the gist above, you can then style it any way you'd like. .subtitle { color: pink; }
Yes! You can use this bridge plugin to automatically display the subtitle in most WooCommerce locations.
function kia_add_subtitle_to_wp_title( $title ) { if ( is_single() && function_exists( 'get_the_subtitle' ) ) && $subtitle == get_the_subtitle( get_the_ID() ) ) { $title .= $subtitle; } } add_filter( 'wp_title', 'kia_add_subtitle_to_wp_title' );
WPML now supports KIA Subtitle!