Forums

WordPress Printing (1 post)

  1. rize
    Member
    Posted 11 months ago #

    Here's what I want to achieve.. when a user clicks on the button, it'll print the thumbnail.. Here's what I have so far:

    <?php $url = wp_get_attachment_url( get_post_thumbnail_id($post->ID) );?>
    <a href="<?php echo $url; ?>" target=_blank / class="more-link"></a>

    What code do I add to make it print the thumbnail?

Reply

You must log in to post.

About this Topic