WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Printing (1 post)

  1. rize
    Member
    Posted 3 years 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?

Topic Closed

This topic has been closed to new replies.

About this Topic