Skip to content
Public Ticket #18608

subtitle

Conversation thread

PenciDesign Supporter replied

Staff Reply

Hi,

By default, the subtitle is only displayed on a single post. In case you want to show it in all layouts, please install the CodeSnippet plugin, then create a new snippet with the following content:

add_filter( 'the_title', function ( $title, $id ) {
    $sub_title   = get_post_meta( $id, 'penci_post_sub_title', true );
    $html_return = '';
    if ( $sub_title ) {
        $html_return = '<h4 class="penci-psub-title">' . $sub_title . '</h4>';
    }
    return $title . $html_return;
} );

Regards,
PenciDesign.

aluca6 started the conversation

Conversation Start

I wish I could see the subtitles I write in the articles under each post. For example as in the attached image but not only in the first section, also for all the other sections of the posts

Thank you

Want to join this conversation or access attachments? Sign in first.