Support » Plugin: Easy Custom Auto Excerpt » Subtitles are duplicated in the excerpts

  • lbdeveloper


    i am trying to show subtitles under each excerpt title, but the subtitle gets duplicated.

    To achieve that, i have added this call before the last return statement of
    tonjoo_ecae_excerpt :


    This is the definition of show_subtitle:

    function show_subtitle($tag="h2"){
    			$subtitle = ob_get_contents();
    echo '<' . $tag . ' class="subtitle">' . apply_filters('the_title',$subtitle) . '</' . $tag . '>';

    The subtitles get duplicated even if i replace show_subtitle(“h3”) with the_subtitle().
    Why is this?
    The post page calls show_subtitle() but doesn’t have this issue, only the excerpt has it.

    Let me know ,
    thank you in advance

    P.S. The subtitles plugin i use is KIA Subtitle.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor ageproem


    Hello lianobat,
    It seems that you try add subtitle via ECAE plugin. If you want to add subtitle, please add this via theme.
    edit file template-parts/content.php & template-parts/content-single.php



    It worked thank you!
    I had to edit the files in the template-parts/widgets folder , as i was showing the excerpts via the Magazine widget

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Subtitles are duplicated in the excerpts’ is closed to new replies.