HTML in Titles
-
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 anesc_html()
to make sure the results of that processing are not used. I would recommend just replacing theget_the_title
with a grab of thepost_title
unprocessed. Here’s how I fixed it for my use:$title = $onePage->post_title;
…instead of…
$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!
https://www.ads-software.com/extend/plugins/cms-tree-page-view/
- The topic ‘HTML in Titles’ is closed to new replies.