How to add Subtitle or Tagline to Posts and Pages in WordPress in 3 ways

WordPress remains the most used platform for blogs and website, it is the CMS of choice. However it doesn’t come with an easy way for web publishers and bloggers to to add subtitles into their posts, pages, and other custom post types.

Subtitles present a very good way to publish a blog, giving a user a second hint as to what the post is all about. This deficiency in WordPress has left users and web developers in a bit of a disadvantage, trying to figure out  the best way to include subtitles easily without breaking the website code.

Some existing tools such as Post excerpts present a somewhat poorer choice for subtitles, the second available option is the custom fields, which might also not be an easy avenue given it is not very user-friendly.

So we are left with no options other than to use plugins to solve the problem.

NOTE: As always ensure that the plugins are compatible with your WordPress version before installation. Read: How to install, manage and uninstall or delete a WordPress Plugin

Here are some options available.

1. Secondary Title Plugin:

The secondary title plugin is a simple, light-weight plugin that adds an alternative title to posts, pages and/or custom post types which can be displayed automatically, with a shortcode, or by using PHP.

The plugin comes with an extra settings page which allows you to customize the plugin according to your needs.

You will however need to go to the plugin settings since it comes with its own configuration options which allow you to customize how your secondary titles are displayed in the admin area and in your WordPress themes.

To change those options, then you need to click on Settings » Secondary Title menu in the WordPress admin menu.

2. WP Subtitle By Ben Huson, Husani Oakley

The WP Subtitle plugin allows your pages and posts to contain a subtitle. Also called a sub-heading, this short line of text is meant to appear beneath a post’s (or page’s) title, but can be inserted in your template wherever you choose.

The sub title can be inserted into your theme template files (or plugin) using the following API:

Display The Subtitle or Tagline

All parameters are optional. If ‘post_id’ is omitted then the current post ID in the loop is used.

PHP Code:

do_action( 'plugins/wp_subtitle/the_subtitle', array(
    'before'        => '<p class="subtitle">',
    'after'         => '</p>',
    'post_id'       => get_the_ID(),
    'default_value' => ''
) );


3. Subtitles By Philip Arthur Moore, We Cobble

By default the Subtitles plugin just works. All you should need to do in order to begin using it is activate the plugin and begin adding subtitles into your posts, pages, and Sub-titles-enabled custom post types.

There are no custom template tags to add into your theme and, outside of advanced use, there is nothing you need to do to your theme in order to begin using this plugin.

What follows are instructions on how to install the plugin and get it working.

Using The WordPress Dashboard (Recommended)

  1. Navigate to Plugins → Add New from within the WordPress Dashboard.
  2. Search for subtitles.
  3. Click Install Now on Subtitles by Philip Arthur Moore.
  4. Activate the plugin.
  5. Simply download the plugin and, activate it, and begin adding sub-titles into your posts and pages today. For more advanced usage of the plugin, please see the Frequently Asked Questions.

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 152 other subscribers