replace get_the_title with the_title_attribute
-
I keep fixing this line for each new version, and I realize I should let you know and see if you agree with this fix and might make the change on your version.
The title you are getting using get_the_title() is being used in an html attribute, which doesn’t want any extraneous information (like html tags) in the value.
on line 135, you have
$wpfbogp_title = get_the_title();instead you might use
$wpfbogp_title = the_title_attribute('echo=0');https://codex.ww.wp.xz.cn/Function_Reference/the_title_attribute
Great plugin. Thank you for it.
https://ww.wp.xz.cn/plugins/wp-facebook-open-graph-protocol/
The topic ‘replace get_the_title with the_title_attribute’ is closed to new replies.