Site logo

Archived topic

How to add text after the title and before the entry meta tag of a post?

3 replies · Started by Pintu on February 14, 2022

Viewing posts 1–4 of 4

Hi, are there any ways to add texts after the title and before the entry meta tag in a single post? There are many sites having this text, like androidauthority.com and theverge.

Here is the example image that I'm trying to implement.

Even though, I've found an article regarding this but I want know if there is a simpler and straight forward way of doing this.

Hi Pintu,

One way to achieve this is through these steps:

1. Install WP-Subtitle: https://wordpress.org/plugins/wp-subtitle/
2. Create a new Hook Element with this code:

<?php the_subtitle( '<h5>', '</h5>' ); 
?>

This Hook Element should be hooked to generate_after_entry_title, and execute PHP should be turned on. Moreover, the priority should be a value less than 10.

See this for reference: https://share.getcloudapp.com/6quEpOEy

You may add subtitles as such: https://share.getcloudapp.com/xQuzm4AX

Don’t forget to set the Display rules to Blog and Post or whichever your preference is.

See: https://share.getcloudapp.com/nOu9rzX0

Hope this helps! :)

Thanks, Fernando :)

You’re welcome Pintu! Feel free to reach out anytime if you’ll need help with anything else. :)

This archived topic is closed to new replies.