I am using the following code in a html and it works fine. <?php echo '<a href="http://www.website.com">'; echo file_get_contents( "http://www.website.com/file.php"); echo '</a>'; ?> PHP: Yet when I put it in wordpress with php enabled I get: <?php echo=undefined '=undefined href="http://www.website.com"?> '; echo file_get_contents( "http://www.website.com/file.php"); echo ' '; ?> Code (markup): Does anyone know what I am doing wrong?
Try This perhaps? <?php echo "<a href='http://www.website.com'>"; echo file_get_contents('http://www.website.com/file.php'); echo "</a>"; ?>
No in a sidebar. But I think wordpress just doesn't allow it and it needs an additional sidebar php plugin.