I use wp-Typography on my site and it makes a mess of CMS Tree Page View titles. The typography plugin inserts all sorts of spans into text with filters. Unfortunately, since CMS Tree Page View uses
get_the_title()to grab the page titles, I end up with nearly illegible titles. I’m not sure why you think it is important that the titles be processed since you later do an
esc_html()to make sure the results of that processing are not used. I would recommend just replacing the
get_the_titlewith a grab of the
post_titleunprocessed. Here’s how I fixed it for my use:
$title = $onePage->post_title;
$title = get_the_title($onePage->ID); // so hooks and stuff will do their work
I hope this can make it into an update some day!
- The topic ‘HTML in Titles’ is closed to new replies.