Secondary Title 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 can change:
- post types, categories and specific post IDs the secondary title will be
- whether the secondary title should be automatically added to the standard title (Auto show),
- the format both titles are being shown (only works when Auto show is activated),
- the position where the secondary title input field should be displayed (above or below the standard title) within the admin interface (Classic Editor only),
- whether the secondary title should only be displayed in the main post and not within widgets etc.,
- if the secondary title should be usable in permalinks,
- and even more.
Please see the official website for a full documentation.
- Install Secondary Title either by searching for the plugin with WordPress’ native plugin installer found under Plugins → Add New or (download the plugin manually)[https://downloads.wordpress.org/plugin/secondary-title.zip] and copy the secondary-title folder into the /wp-content/plugins/ directory of your WordPress installation.
- Activate the plugin in the Plugins section of your admin interface.
- Go to Settings → Secondary Title to customize the plugin as desired.
IMPORTANT: If the Auto show option is set to Off, you have to use either
<?php echo get_secondary_title($post_id, $prefix, $suffix); ?>
<?php the_secondary_title($post_id, $prefix, $suffix); ?>
in your theme file(s) (e.g. single.php) where you would like the secondary title to be displayed.
For a more detailed documentation with parameters, functions and examples, please see the official documentation.