Changing the_title to the_title_attribute, need help
-
i used html in my post titles, and with the_title they get added on facebook
$content .= $data['post']->post_title."\n"; wp_mail( $data['target'], '['.__( 'Shared Post', 'jetpack' ).'] '.$data['post']->post_title, $content );
i want to change those 2 lines of code to something with
the_title_attribute( 'echo=0' ), get_the_title()
anyone help?
- The topic ‘Changing the_title to the_title_attribute, need help’ is closed to new replies.