Im trying to add a link with anchor text in the footer of a wordpress template. Below is the code and i have placed an "xxxxxxx" where i would like the code to go. <!-- Copyright Starts --> <div id="copyright-out"> <div id="copyright" class="wrap"> <div class="col-left"> <p>© <?php the_time('Y'); ?> <?php bloginfo(); ?>. <?php _e('All Rights Reserved.'); ?></p> </div> <div class="col-right"> <p>xxxxxxx</p> </div> </div> </div> <!-- Copyright Ends --> Code (markup):
Why do you need PHP codes within the <p>xxxxxx</p> that you've specified? That is just plain HTML: <p><a href="http://www.yoursite.com">Click here</a></p> If you want PHP though: <?php echo '<p><a href="http://www.yoursite.com">Click here</a></p>'; ?>
i tried html and it didnt work, dunno why Edit: hmmm, that didnt work either. WTH!! Edit: Got it to work, THANKS!!!
PHP takes html also But you need to write like this <?php echo 'YOUR HTML CODES HERE'; ?> For your problem it looks like <?php echo '<p><a href="http://domain.com/ title='Title' target='_blank'>Domain Link</a></p>'; ?> PHP: