php-tips-insert-href-link-in-a-php-code

If the link needs to be inside of the PHP you have two options. Option one is to end the PHP and then reopen it. Here is an example:
<?php
—– My PHP Code—-
?>
<a href=”https://twitter.com/angela_bradley”>My Twitter</a>
<?php
—– My PHP Code—-
?>

The other option is to print or echo the HTML code inside of the PHP. Here is an example:
<?php
Echo “<a href=https://twitter.com/angela_bradley>My Twitter</a>”
?>

WP Twitter Auto Publish Powered By : XYZScripts.com