suggestion: get_the_title to the_title_attribute
-
I changed line 122 from
$wpfbogp_title = get_the_title();
to
$wpfbogp_title = the_title_attribute('echo=0');
to clean the title of html tags for use in an attribute
Does this change make sense for others, as well?
https://www.ads-software.com/extend/plugins/wp-facebook-open-graph-protocol/
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘suggestion: get_the_title to the_title_attribute’ is closed to new replies.