Open Caroline-Elisa opened 7 years ago
Using the_title() in share links, expecting to get only title. Link code:
<a href='https://twitter.com/intent/tweet?source=<?php the_permalink(); ?>&text=<?php the_title(); ?>:%20<?php the_permalink(); ?>' target='_blank' title='Tweet'>Tweet</a>
However when logged in to WP the_title() returns the page title plus <br class="fee-title" />
<br class="fee-title" />
https://monosnap.com/file/mWVkaiGdsydGu18I6TnyfzVpYqHdyA
Expected behaviour and actual behaviour
Using the_title() in share links, expecting to get only title. Link code:
<a href='https://twitter.com/intent/tweet?source=<?php the_permalink(); ?>&text=<?php the_title(); ?>:%20<?php the_permalink(); ?>' target='_blank' title='Tweet'>Tweet</a>
However when logged in to WP the_title() returns the page title plus
<br class="fee-title" />
https://monosnap.com/file/mWVkaiGdsydGu18I6TnyfzVpYqHdyA
Specifications