This short PHP code works in Firefox but nothing else?
-
I’m trying to make a custom download button for my single posts, so I added the following code in my single.php
<div id="downloadbutton"> <?php if(get_post_meta($post->ID, "download_link", $single = true) != ""){ ?> <a href="<?php echo get_post_meta($post->ID, "download_link", $single = true); ?>"<img src="example.png" border="0"></a> <?php } ?> </div>
For some reason, the download button shows up only in Firefox browser, but not in Chrome or IE…
Any tips?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘This short PHP code works in Firefox but nothing else?’ is closed to new replies.