Join the Soledad Facebook Users Group here
for Share, assistance, discussion, and Updates related to Soledad WordPress Theme.

If you can't create a new ticket - you can send us an email via our contact form and we will get back to you.

Okay
  Public Ticket #2913568
subtitle
Closed

Comments

  • aluca6 started the conversation

    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

  •  2,613
    PenciDesign replied

    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.