Print image
-
Hi all,
I need to print only the image.
My code is:
<?php $thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'full' ); $url = $thumb['0']; echo '<script language="javascript"> function imprimer(){ fenetre=window.open("'.$url.'" ); fenetre.print(); fenetre.top.close(); } </script>'; echo '<a href="javascript:imprimer()">Imprimer</a>'; ?>
It’s not working ??
Any idea???
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Print image’ is closed to new replies.