Hi,
Yes, unfortunately when I inherited and took over maintenance of this plugin if already had the get_the_subtitle()
function which echoed the title rather than returning it.
As the plugin was well established, I couldn’t really change that functionality without breaking it for a lot of people.
So the get_the_subtitle()
function has a 4th parameter which you can override to return rather than echo the subtitle – see https://github.com/benhuson/wp-subtitle/wiki/get_the_subtitle
<?php get_the_subtitle( get_teh_ID(), '', '', false ); ?>
I know this makes no sense but it is to provide backward compatibility for existing users.
Maybe I should introduce a get_subtitle()
function, or something similar?
Ben
-
This reply was modified 7 years, 5 months ago by Ben Huson.